Class MessageBufferSupport
java.lang.Object
org.fusesource.hawtbuf.proto.MessageBufferSupport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidaddAll(Iterable<T> values, Collection<? super T> list) static intcomputeMessageSize(int tag, MessageBuffer message) static BufferreadFrame(InputStream input) static bytestatic intRead a raw Varint from the stream.static BuffertoFramedBuffer(MessageBuffer message) static BuffertoUnframedBuffer(MessageBuffer message) static voidwriteMessage(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
-