Lines Matching refs:mBuffer
32 : mBuffer(NULL), in MtpPacket()
37 mBuffer = (uint8_t *)malloc(bufferSize); in MtpPacket()
38 if (!mBuffer) { in MtpPacket()
45 if (mBuffer) in ~MtpPacket()
46 free(mBuffer); in ~MtpPacket()
52 memset(mBuffer, 0, mBufferSize); in reset()
58 mBuffer = (uint8_t *)realloc(mBuffer, newLength); in allocate()
59 if (!mBuffer) { in allocate()
74 mBuffer[i]); in dump()
91 memcpy(mBuffer, src.mBuffer, length); in copyFrom()
95 return ((uint16_t)mBuffer[offset + 1] << 8) | (uint16_t)mBuffer[offset]; in getUInt16()
99 return ((uint32_t)mBuffer[offset + 3] << 24) | ((uint32_t)mBuffer[offset + 2] << 16) | in getUInt32()
100 ((uint32_t)mBuffer[offset + 1] << 8) | (uint32_t)mBuffer[offset]; in getUInt32()
104 mBuffer[offset++] = (uint8_t)(value & 0xFF); in putUInt16()
105 mBuffer[offset++] = (uint8_t)((value >> 8) & 0xFF); in putUInt16()
109 mBuffer[offset++] = (uint8_t)(value & 0xFF); in putUInt32()
110 mBuffer[offset++] = (uint8_t)((value >> 8) & 0xFF); in putUInt32()
111 mBuffer[offset++] = (uint8_t)((value >> 16) & 0xFF); in putUInt32()
112 mBuffer[offset++] = (uint8_t)((value >> 24) & 0xFF); in putUInt32()