Lines Matching refs:numBytesWritten
75 size_t numBytesWritten; member
93 event->numBytesWritten = 2; // reserve first 2 bytes for root event type and number of elements in AStatsEvent_obtain()
133 const size_t totalBytesNeeded = event->numBytesWritten + size; in overflows()
158 event->buf[event->numBytesWritten] = value; in append_byte()
159 event->numBytesWritten += sizeof(value); in append_byte()
169 memcpy(&event->buf[event->numBytesWritten], &value, sizeof(value)); in append_int32()
170 event->numBytesWritten += sizeof(value); in append_int32()
176 memcpy(&event->buf[event->numBytesWritten], &value, sizeof(value)); in append_int64()
177 event->numBytesWritten += sizeof(value); in append_int64()
183 memcpy(&event->buf[event->numBytesWritten], &value, sizeof(value)); in append_float()
184 event->numBytesWritten += sizeof(float); in append_float()
190 memcpy(&event->buf[event->numBytesWritten], buf, size); in append_byte_array()
191 event->numBytesWritten += size; in append_byte_array()
208 event->lastFieldPos = event->numBytesWritten; in start_field()
316 if (size) *size = event->numBytesWritten; in AStatsEvent_getBuffer()
327 if (push && event->numBytesWritten > MAX_PUSH_EVENT_PAYLOAD) event->errors |= ERROR_OVERFLOW; in build_internal()
337 event->numBytesWritten = POS_ATOM_ID + sizeof(uint8_t) + sizeof(uint32_t); in build_internal()
355 return write_buffer_to_statsd(event->buf, event->numBytesWritten, event->atomId); in AStatsEvent_write()