Lines Matching refs:byteCount
38 * Returns when the buffer contains at least {@code byteCount} bytes. Throws
42 void require(long byteCount) throws IOException;
45 * Returns true when the buffer contains at least {@code byteCount} bytes,
49 boolean request(long byteCount) throws IOException;
91 * Reads and discards {@code byteCount} bytes from this source. Throws an
95 void skip(long byteCount) throws IOException;
100 /** Removes {@code byteCount} bytes from this and returns them as a byte string. */
101 ByteString readByteString(long byteCount) throws IOException;
106 /** Removes {@code byteCount} bytes from this and returns them as a byte array. */
107 byte[] readByteArray(long byteCount) throws IOException;
122 * Removes up to {@code byteCount} bytes from this and copies them into {@code sink} at
125 int read(byte[] sink, int offset, int byteCount) throws IOException;
128 * Removes exactly {@code byteCount} bytes from this and appends them to
132 void readFully(Buffer sink, long byteCount) throws IOException;
145 * Removes {@code byteCount} bytes from this, decodes them as UTF-8, and
148 String readUtf8(long byteCount) throws IOException;
196 * Removes {@code byteCount} bytes from this, decodes them as {@code charset},
199 String readString(long byteCount, Charset charset) throws IOException;