Lines Matching refs:pos
32 void writeInt32(uint8_t* base, size_t& pos, int32_t value) {
38 base[pos] = EVENT_TYPE_INT;
39 memcpy(&base[pos+1], &v, sizeof(int32_t));
40 pos += 1+sizeof(int32_t);
44 void writeInt64(uint8_t* base, size_t& pos, int64_t value) {
50 base[pos] = EVENT_TYPE_LONG;
51 memcpy(&base[pos+1], &v, sizeof(int64_t));
52 pos += 1+sizeof(int64_t);
58 size_t pos = 0;
59 scratch[pos++] = EVENT_TYPE_LIST;
60 scratch[pos++] = 2;
61 writeInt32(scratch, pos, buffer);
62 writeInt64(scratch, pos, ns2ms( systemTime( SYSTEM_TIME_MONOTONIC ) ));
69 size_t pos = 0;
70 scratch[pos++] = EVENT_TYPE_LIST;
71 scratch[pos++] = 3;
72 writeInt32(scratch, pos, buffer);
73 writeInt32(scratch, pos, identity);
74 writeInt64(scratch, pos, ns2ms( systemTime( SYSTEM_TIME_MONOTONIC ) ));