Home
last modified time | relevance | path

Searched refs:from_buf (Results 1 – 3 of 3) sorted by relevance

/third_party/mesa3d/src/util/
Du_dynarray.h122 struct util_dynarray *from_buf) in util_dynarray_clone() argument
125 if (util_dynarray_resize_bytes(buf, from_buf->size, 1)) in util_dynarray_clone()
126 memcpy(buf->data, from_buf->data, from_buf->size); in util_dynarray_clone()
/third_party/gn/src/base/containers/
Dcircular_deque.h908 static void MoveBuffer(VectorBuffer& from_buf, in MoveBuffer() argument
914 size_t from_capacity = from_buf.capacity(); in MoveBuffer()
919 from_buf.MoveRange(&from_buf[from_begin], &from_buf[from_end], in MoveBuffer()
924 from_buf.MoveRange(&from_buf[from_begin], &from_buf[from_capacity], in MoveBuffer()
928 from_buf.MoveRange(&from_buf[0], &from_buf[from_end], in MoveBuffer()
/third_party/python/Lib/test/
Dtest_struct.py428 from_buf = writable_buf.tobytes()[:len(test_string)]
429 self.assertEqual(from_buf, test_string)
433 from_buf = writable_buf.tobytes()[:len(test_string)+10]
434 self.assertEqual(from_buf, test_string[:10] + test_string)
456 from_buf = writable_buf.tobytes()[:len(test_string)]
457 self.assertEqual(from_buf, test_string)
461 from_buf = writable_buf.tobytes()[:len(test_string)+10]
462 self.assertEqual(from_buf, test_string[:10] + test_string)