Searched refs:buffer_end (Results 1 – 4 of 4) sorted by relevance
/system/netd/resolv/dns_responder/ |
D | dns_responder.cpp | 158 const char* read(const char* buffer, const char* buffer_end); 159 char* write(char* buffer, const char* buffer_end) const; 162 const char* parseField(const char* buffer, const char* buffer_end, 170 const char* DNSName::read(const char* buffer, const char* buffer_end) { in read() argument 174 cur = parseField(cur, buffer_end, &last); in read() 183 char* DNSName::write(char* buffer, const char* buffer_end) const { in write() 198 if (buffer_cur + sizeof(uint8_t) + len > buffer_end) { in write() 213 const char* DNSName::parseField(const char* buffer, const char* buffer_end, in parseField() argument 215 if (buffer + sizeof(uint8_t) > buffer_end) { in parseField() 228 if (cur + ofs > buffer_end) { in parseField() [all …]
|
/system/core/libmemunreachable/tests/ |
D | HeapWalker_test.cpp | 95 #define buffer_end(buffer) (reinterpret_cast<uintptr_t>(buffer) + sizeof(buffer)) macro 104 heap_walker.Allocation(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F() 117 EXPECT_EQ(buffer_end(buffer2), leaked[0].end); in TEST_F() 131 heap_walker.Allocation(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F() 132 heap_walker.Root(buffer_begin(buffer1), buffer_end(buffer1)); in TEST_F() 159 heap_walker.Allocation(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F() 160 heap_walker.Root(buffer_begin(buffer1) + i, buffer_end(buffer1) - j); in TEST_F() 184 heap_walker.Allocation(buffer_begin(buffer1), buffer_end(buffer1)); in TEST_F() 185 heap_walker.Allocation(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F() 209 heap_walker.Root(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F()
|
D | LeakFolding_test.cpp | 43 #define buffer_end(buffer) (reinterpret_cast<uintptr_t>(&(buffer)[0]) + sizeof(buffer)) macro 45 ASSERT_EQ(true, (heap_walker).Allocation(buffer_begin(buffer), buffer_end(buffer)))
|
/system/core/libcutils/ |
D | record_stream.cpp | 42 unsigned char *buffer_end; member 60 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE; in record_stream_new() 145 && p_rs->read_end == p_rs->buffer_end in record_stream_get_next() 167 countRead = read (p_rs->fd, p_rs->read_end, p_rs->buffer_end - p_rs->read_end); in record_stream_get_next()
|