Searched refs:BUF_LEN (Results 1 – 2 of 2) sorted by relevance
/third_party/openssl/test/ |
D | packettest.c | 13 #define BUF_LEN 255 macro 15 static unsigned char smbuf[BUF_LEN]; 22 || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN) in test_PACKET_remaining() 23 || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 1)) in test_PACKET_remaining() 37 || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN) in test_PACKET_end() 38 || !TEST_ptr_eq(PACKET_end(&pkt), smbuf + BUF_LEN) in test_PACKET_end() 39 || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 1)) in test_PACKET_end() 40 || !TEST_ptr_eq(PACKET_end(&pkt), smbuf + BUF_LEN) in test_PACKET_end() 42 || !TEST_ptr_eq(PACKET_end(&pkt), smbuf + BUF_LEN)) in test_PACKET_end() 53 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_1() [all …]
|
/third_party/glib/glib/ |
D | giochannel.c | 163 #define BUF_LEN(string) ((string) ? (string)->len : 0) macro 1779 if (!first_time || (BUF_LEN (USE_BUF (channel)) == 0)) in g_io_channel_read_line_backend() 1786 if (BUF_LEN (USE_BUF (channel)) == 0) in g_io_channel_read_line_backend() 1796 if (BUF_LEN (USE_BUF (channel)) == 0) in g_io_channel_read_line_backend() 1820 g_assert (BUF_LEN (USE_BUF (channel)) != 0); in g_io_channel_read_line_backend() 2049 while (BUF_LEN (USE_BUF (channel)) < count && status == G_IO_STATUS_NORMAL) in g_io_channel_read_chars() 2054 if (BUF_LEN (USE_BUF (channel)) == 0) in g_io_channel_read_chars() 2059 && BUF_LEN (channel->read_buf) > 0) in g_io_channel_read_chars() 2076 got_bytes = MIN (count, BUF_LEN (USE_BUF (channel))); in g_io_channel_read_chars() 2137 while (BUF_LEN (channel->encoded_read_buf) == 0 && status == G_IO_STATUS_NORMAL) in g_io_channel_read_unichar() [all …]
|