Lines Matching refs:mPos
55 : mPos(0), mTag(tag), mOverflow(false) { in TagBuffer()
61 } else if (android_bWriteLog(mTag, mStorage, mPos) < 0) { in log()
65 mPos = 0; in log()
72 if (mPos + needed > STORAGE_MAX_SIZE) { in startList()
76 mStorage[mPos + 0] = EVENT_TYPE_LIST; in startList()
77 mStorage[mPos + 1] = count; in startList()
78 mPos += needed; in startList()
84 if (mPos + needed > STORAGE_MAX_SIZE) { in endList()
88 mStorage[mPos + 0] = '\n'; in endList()
89 mPos += needed; in endList()
95 if (mPos + needed > STORAGE_MAX_SIZE) { in writeInt32()
99 mStorage[mPos + 0] = EVENT_TYPE_INT; in writeInt32()
100 memcpy(&mStorage[mPos + 1], &value, sizeof(value)); in writeInt32()
101 mPos += needed; in writeInt32()
107 if (mPos + needed > STORAGE_MAX_SIZE) { in writeInt64()
111 mStorage[mPos + 0] = EVENT_TYPE_LONG; in writeInt64()
112 memcpy(&mStorage[mPos + 1], &value, sizeof(value)); in writeInt64()
113 mPos += needed; in writeInt64()
120 if (mPos + needed > STORAGE_MAX_SIZE) { in writeString()
124 mStorage[mPos + 0] = EVENT_TYPE_STRING; in writeString()
125 memcpy(&mStorage[mPos + 1], &stringLen, sizeof(int32_t)); in writeString()
126 memcpy(&mStorage[mPos + 5], value.data(), stringLen); in writeString()
127 mPos += needed; in writeString()