Home | History | Annotate | Download | only in util

Lines Matching refs:length

66     public void consume(byte[] buf, int offset, int length) throws IOException {
69 // is negative but length is 0
72 if (offset > buf.length) {
74 // is too large but length is 0
76 "offset: " + offset + ", buf.length: " + buf.length);
78 if (length == 0) {
84 mFile.write(buf, offset, length);
85 mPosition += length;
91 int length = buf.remaining();
92 if (length == 0) {
101 mPosition += length;