Home | History | Annotate | Download | only in protobuf

Lines Matching defs:CodedInputStream

53 public final class CodedInputStream {
55 * Create a new CodedInputStream wrapping the given InputStream.
57 public static CodedInputStream newInstance(final InputStream input) {
58 return new CodedInputStream(input, BUFFER_SIZE);
62 * Create a new CodedInputStream wrapping the given InputStream.
64 static CodedInputStream newInstance(final InputStream input, int bufferSize) {
65 return new CodedInputStream(input, bufferSize);
69 * Create a new CodedInputStream wrapping the given byte array.
71 public static CodedInputStream newInstance(final byte[] buf) {
76 * Create a new CodedInputStream wrapping the given byte array slice.
78 public static CodedInputStream newInstance(final byte[] buf, final int off,
84 * Create a new CodedInputStream wrapping the given byte array slice.
86 static CodedInputStream newInstance(
88 CodedInputStream result = new CodedInputStream(buf, off, len, bufferIsImmutable);
90 // Some uses of CodedInputStream can be more efficient if they know
110 * Create a new CodedInputStream wrapping the given ByteBuffer. The data
112 * The returned CodedInputStream may or may not share the underlying data
114 * CodedInputStream is in use.
119 public static CodedInputStream newInstance(ByteBuffer buf) {
545 // into the underlying byte array without copy if the CodedInputStream is
668 * stream in a CodedInputStream and used {@link #readRawVarint32(InputStream)}
670 * CodedInputStream buffers its input.
891 private CodedInputStream(
901 private CodedInputStream(final InputStream input, int bufferSize) {
916 * messages from causing stack overflows, {@code CodedInputStream} limits
934 * {@code CodedInputStream} limits how large a message may be.
941 * If you want to read several messages from a single CodedInputStream, you
969 * {@code CodedInputStream} reads from an underlying {@code InputStream} when