Home
last modified time | relevance | path

Searched refs:mBufferCap (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DFastDataOutput.java53 private final int mBufferCap; field in FastDataOutput
71 mBufferCap = mBuffer.length; in FastDataOutput()
101 if (mBufferCap == BUFFER_SIZE) { in release()
147 if (mBufferCap < len) { in write()
151 if (mBufferCap - mBufferPos < len) drain(); in write()
161 if (mBufferCap - mBufferPos < 2 + s.length()) drain(); in writeUTF()
165 int len = CharsetUtils.toModifiedUtf8Bytes(s, mBufferPtr, mBufferPos + 2, mBufferCap); in writeUTF()
221 if (mBufferCap - mBufferPos < 1) drain(); in writeByte()
227 if (mBufferCap - mBufferPos < 2) drain(); in writeShort()
239 if (mBufferCap - mBufferPos < 4) drain(); in writeInt()
[all …]
DFastDataInput.java49 private final int mBufferCap; field in FastDataInput
69 mBufferCap = mBuffer.length; in FastDataInput()
80 int c = mIn.read(mBuffer, mBufferLim, mBufferCap - mBufferLim); in fill()
104 if (mBufferCap >= len) { in readFully()
132 if (mBufferCap > len) { in readUTF()