public class ByteBufCodedOutputStream extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ByteBufCodedOutputStream.ByteBufGeneratedMessage |
| Modifier and Type | Method and Description |
|---|---|
static ByteBufCodedOutputStream |
get(io.netty.buffer.ByteBuf buf) |
void |
recycle() |
void |
writeBool(int fieldNumber,
boolean value)
Write a
bool field, including tag, to the stream. |
void |
writeBoolNoTag(boolean value)
Write a
bool field to the stream. |
void |
writeBytes(int fieldNumber,
org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value)
Write a
bytes field, including tag, to the stream. |
void |
writeBytesNoTag(org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value)
Write a
bytes field to the stream. |
void |
writeDouble(int fieldNumber,
double value)
Write an double field, including tag, to the stream.
|
void |
writeEnum(int fieldNumber,
int value) |
void |
writeEnumNoTag(int value)
Write an enum field to the stream.
|
void |
writeInt32(int fieldNumber,
int value)
Write an
int32 field, including tag, to the stream. |
void |
writeInt32NoTag(int value)
Write an
int32 field to the stream. |
void |
writeInt64(int fieldNumber,
long value) |
void |
writeInt64NoTag(long value)
Write a
uint64 field to the stream. |
void |
writeMessage(int fieldNumber,
ByteBufCodedOutputStream.ByteBufGeneratedMessage value)
Write an embedded message field, including tag, to the stream.
|
void |
writeMessageNoTag(ByteBufCodedOutputStream.ByteBufGeneratedMessage value)
Write an embedded message field to the stream.
|
void |
writeRawByte(int value)
Write a single byte.
|
void |
writeRawBytes(org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value)
Write a byte string.
|
void |
writeRawVarint32(int value)
Encode and write a varint.
|
void |
writeRawVarint64(long value)
Encode and write a varint.
|
void |
writeSFixed64(int fieldNumber,
long value) |
void |
writeSFixed64NoTag(long value) |
void |
writeTag(int fieldNumber,
int wireType)
Encode and write a tag.
|
void |
writeUInt32(int fieldNumber,
int value)
Write a
uint32 field, including tag, to the stream. |
void |
writeUInt32NoTag(int value)
Write a
uint32 field to the stream. |
void |
writeUInt64(int fieldNumber,
long value) |
void |
writeUInt64NoTag(long value)
Write a
uint64 field to the stream. |
public static ByteBufCodedOutputStream get(io.netty.buffer.ByteBuf buf)
public void recycle()
public void writeRawByte(int value)
public void writeRawVarint32(int value)
throws IOException
value is treated as unsigned, so it won't be sign-extended if negative.IOExceptionpublic void writeTag(int fieldNumber,
int wireType)
throws IOException
IOExceptionpublic void writeInt32(int fieldNumber,
int value)
throws IOException
int32 field, including tag, to the stream.IOExceptionpublic void writeInt64(int fieldNumber,
long value)
throws IOException
IOExceptionpublic void writeUInt64(int fieldNumber,
long value)
throws IOException
IOExceptionpublic void writeBool(int fieldNumber,
boolean value)
throws IOException
bool field, including tag, to the stream.IOExceptionpublic void writeBoolNoTag(boolean value)
throws IOException
bool field to the stream.IOExceptionpublic void writeInt64NoTag(long value)
throws IOException
uint64 field to the stream.IOExceptionpublic void writeUInt64NoTag(long value)
throws IOException
uint64 field to the stream.IOExceptionpublic void writeRawVarint64(long value)
throws IOException
IOExceptionpublic void writeBytes(int fieldNumber,
org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value)
throws IOException
bytes field, including tag, to the stream.IOExceptionpublic void writeBytesNoTag(org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value)
throws IOException
bytes field to the stream.IOExceptionpublic void writeRawBytes(org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value)
throws IOException
IOExceptionpublic void writeEnum(int fieldNumber,
int value)
throws IOException
IOExceptionpublic void writeUInt32(int fieldNumber,
int value)
throws IOException
uint32 field, including tag, to the stream.IOExceptionpublic void writeUInt32NoTag(int value)
throws IOException
uint32 field to the stream.IOExceptionpublic void writeSFixed64(int fieldNumber,
long value)
throws IOException
IOExceptionpublic void writeSFixed64NoTag(long value)
throws IOException
IOExceptionpublic void writeEnumNoTag(int value)
throws IOException
IOExceptionpublic void writeInt32NoTag(int value)
throws IOException
int32 field to the stream.IOExceptionpublic void writeMessage(int fieldNumber,
ByteBufCodedOutputStream.ByteBufGeneratedMessage value)
throws IOException
IOExceptionpublic void writeMessageNoTag(ByteBufCodedOutputStream.ByteBufGeneratedMessage value) throws IOException
IOExceptionpublic void writeDouble(int fieldNumber,
double value)
throws IOException
IOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.