public final class MessageBufferSupport extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FORZEN_ERROR_MESSAGE |
Constructor and Description |
---|
MessageBufferSupport() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
addAll(Iterable<T> values,
Collection<? super T> list) |
static int |
computeMessageSize(int tag,
MessageBuffer message) |
static Buffer |
readFrame(InputStream input) |
static byte |
readRawByte(InputStream is) |
static int |
readRawVarint32(InputStream is)
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) |
public static final String FORZEN_ERROR_MESSAGE
public static Buffer toUnframedBuffer(MessageBuffer message)
public static Buffer toFramedBuffer(MessageBuffer message)
public static void writeMessage(CodedOutputStream output, int tag, MessageBuffer message) throws IOException
IOException
public static int computeMessageSize(int tag, MessageBuffer message)
public static Buffer readFrame(InputStream input) throws IOException
IOException
public static int readRawVarint32(InputStream is) throws IOException
IOException
public static byte readRawByte(InputStream is) throws IOException
IOException
public static <T> void addAll(Iterable<T> values, Collection<? super T> list)
Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.