Package org.fusesource.hawtbuf.proto
Class MessageBufferSupport
java.lang.Object
org.fusesource.hawtbuf.proto.MessageBufferSupport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
addAll
(Iterable<T> values, Collection<? super T> list) static int
computeMessageSize
(int tag, MessageBuffer message) static Buffer
readFrame
(InputStream input) static byte
static int
Read a raw Varint from the stream.static Buffer
toFramedBuffer
(MessageBuffer message) static Buffer
toUnframedBuffer
(MessageBuffer message) static void
writeMessage
(CodedOutputStream output, int tag, MessageBuffer message)
-
Field Details
-
FORZEN_ERROR_MESSAGE
- See Also:
-
-
Constructor Details
-
MessageBufferSupport
public MessageBufferSupport()
-
-
Method Details
-
toUnframedBuffer
-
toFramedBuffer
-
writeMessage
public static void writeMessage(CodedOutputStream output, int tag, MessageBuffer message) throws IOException - Throws:
IOException
-
computeMessageSize
-
readFrame
- Throws:
IOException
-
readRawVarint32
Read a raw Varint from the stream. If larger than 32 bits, discard the upper bits.- Throws:
IOException
-
readRawByte
- Throws:
IOException
-
addAll
-