Home | History | Annotate | Download | only in core

Lines Matching refs:buffer

14 void SkRBuffer::readNoSizeCheck(void* buffer, size_t size)
17 if (buffer)
18 memcpy(buffer, fPos, size);
44 void SkWBuffer::writeNoSizeCheck(const void* buffer, size_t size)
47 if (fData && buffer)
48 memcpy(fPos, buffer, size);
71 static void AssertBuffer32(const void* buffer)
73 SkASSERT(buffer);
74 SkASSERT(((size_t)buffer & 3) == 0);
77 #define AssertBuffer32(buffer)
80 void* sk_buffer_write_int32(void* buffer, int32_t value)
82 AssertBuffer32(buffer);
83 *(int32_t*)buffer = value;
84 return (char*)buffer + sizeof(int32_t);
87 void* sk_buffer_write_int32(void* buffer, const int32_t values[], int count)
89 AssertBuffer32(buffer);
92 memcpy((int32_t*)buffer, values, count * sizeof(int32_t));
93 return (char*)buffer + count * sizeof(int32_t);
96 const void* sk_buffer_read_int32(const void* buffer, int32_t* value)
98 AssertBuffer32(buffer);
100 *value = *(const int32_t*)buffer;
101 return (const char*)buffer + sizeof(int32_t);
104 const void* sk_buffer_read_int32(const void* buffer, int32_t values[], int count)
106 AssertBuffer32(buffer);
110 memcpy(values, (const int32_t*)buffer, count * sizeof(int32_t));
111 return (const char*)buffer + count * sizeof(int32_t);
114 void* sk_buffer_write_ptr(void* buffer, void* ptr)
116 AssertBuffer32(buffer);
117 *(void**)buffer = ptr;
118 return (char*)buffer + sizeof(void*);
121 const void* sk_buffer_read_ptr(const void* buffer, void** ptr)
123 AssertBuffer32(buffer);
125 *ptr = *(void**)buffer;
126 return (const char*)buffer + sizeof(void*);