Lines Matching refs:mBuffer
60 private final ByteBuffer mBuffer;
86 mBuffer = ByteBuffer.wrap(data);
87 mBuffer.order(ByteOrder.nativeOrder());
92 return mBuffer.getInt(PROCESS_OFFSET);
102 return mBuffer.getInt(UID_OFFSET);
111 return mBuffer.getInt(THREAD_OFFSET);
116 return mBuffer.getInt(SECONDS_OFFSET) * 1000000000l
117 + mBuffer.getInt(NANOSECONDS_OFFSET);
122 int offset = mBuffer.getShort(HEADER_SIZE_OFFSET);
126 return mBuffer.getInt(offset);
132 int offset = mBuffer.getShort(HEADER_SIZE_OFFSET);
136 mBuffer.limit(offset + mBuffer.getShort(LENGTH_OFFSET));
137 if ((offset + DATA_OFFSET) >= mBuffer.limit()) {
141 mBuffer.position(offset + DATA_OFFSET); // Just after the tag.
154 /** @return the loggable item at the current position in mBuffer. */
156 byte type = mBuffer.get();
159 return mBuffer.getInt();
162 return mBuffer.getLong();
165 return mBuffer.getFloat();
169 int length = mBuffer.getInt();
170 int start = mBuffer.position();
171 mBuffer.position(start + length);
172 return new String(mBuffer.array(), start, length, "UTF-8");
180 int length = mBuffer.get();
198 byte[] bytes = mBuffer.array();
230 return Arrays.equals(mBuffer.array(), other.mBuffer.array());
240 return Arrays.hashCode(mBuffer.array());