TJsonProtocol

Implementation of the Thrift JSON protocol.

Constructors

this
this(Transport trans, int containerSizeLimit, int stringSizeLimit)

Constructs a new instance.

Members

Functions

readBinary
ubyte[] readBinary()
Undocumented in source. Be warned that the author may not have intended to support it.
readBool
bool readBool()
Undocumented in source. Be warned that the author may not have intended to support it.
readByte
byte readByte()
Undocumented in source. Be warned that the author may not have intended to support it.
readDouble
double readDouble()
Undocumented in source. Be warned that the author may not have intended to support it.
readFieldBegin
TField readFieldBegin()
Undocumented in source. Be warned that the author may not have intended to support it.
readFieldEnd
void readFieldEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
readI16
short readI16()
Undocumented in source. Be warned that the author may not have intended to support it.
readI32
int readI32()
Undocumented in source. Be warned that the author may not have intended to support it.
readI64
long readI64()
Undocumented in source. Be warned that the author may not have intended to support it.
readListBegin
TList readListBegin()
Undocumented in source. Be warned that the author may not have intended to support it.
readListEnd
void readListEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
readMapBegin
TMap readMapBegin()
Undocumented in source. Be warned that the author may not have intended to support it.
readMapEnd
void readMapEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
readMessageBegin
TMessage readMessageBegin()
Undocumented in source. Be warned that the author may not have intended to support it.
readMessageEnd
void readMessageEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
readSetBegin
TSet readSetBegin()
Undocumented in source. Be warned that the author may not have intended to support it.
readSetEnd
void readSetEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
readString
string readString()
Undocumented in source. Be warned that the author may not have intended to support it.
readStructBegin
TStruct readStructBegin()
Undocumented in source. Be warned that the author may not have intended to support it.
readStructEnd
void readStructEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
transport
Transport transport()
Undocumented in source. Be warned that the author may not have intended to support it.
writeBinary
void writeBinary(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
writeBool
void writeBool(bool b)
Undocumented in source. Be warned that the author may not have intended to support it.
writeByte
void writeByte(byte b)
Undocumented in source. Be warned that the author may not have intended to support it.
writeDouble
void writeDouble(double dub)
Undocumented in source. Be warned that the author may not have intended to support it.
writeFieldBegin
void writeFieldBegin(TField field)
Undocumented in source. Be warned that the author may not have intended to support it.
writeFieldEnd
void writeFieldEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
writeFieldStop
void writeFieldStop()
Undocumented in source. Be warned that the author may not have intended to support it.
writeI16
void writeI16(short i16)
Undocumented in source. Be warned that the author may not have intended to support it.
writeI32
void writeI32(int i32)
Undocumented in source. Be warned that the author may not have intended to support it.
writeI64
void writeI64(long i64)
Undocumented in source. Be warned that the author may not have intended to support it.
writeListBegin
void writeListBegin(TList list)
Undocumented in source. Be warned that the author may not have intended to support it.
writeListEnd
void writeListEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
writeMapBegin
void writeMapBegin(TMap map)
Undocumented in source. Be warned that the author may not have intended to support it.
writeMapEnd
void writeMapEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
writeMessageBegin
void writeMessageBegin(TMessage msg)
Undocumented in source. Be warned that the author may not have intended to support it.
writeMessageEnd
void writeMessageEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
writeSetBegin
void writeSetBegin(TSet set)
Undocumented in source. Be warned that the author may not have intended to support it.
writeSetEnd
void writeSetEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
writeString
void writeString(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
writeStructBegin
void writeStructBegin(TStruct tstruct)
Undocumented in source. Be warned that the author may not have intended to support it.
writeStructEnd
void writeStructEnd()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

containerSizeLimit
int containerSizeLimit;

If positive, limits the number of items of deserialized containers to the given amount.

stringSizeLimit
int stringSizeLimit;

If positive, limits the length of deserialized strings/binary data to the given number of bytes.

Inherited Members

From TProtocol

transport
TTransport transport()

The underlying transport used by the protocol.

writeBool
void writeBool(bool b)
Undocumented in source.
writeByte
void writeByte(byte b)
Undocumented in source.
writeI16
void writeI16(short i16)
Undocumented in source.
writeI32
void writeI32(int i32)
Undocumented in source.
writeI64
void writeI64(long i64)
Undocumented in source.
writeDouble
void writeDouble(double dub)
Undocumented in source.
writeString
void writeString(string str)
Undocumented in source.
writeBinary
void writeBinary(ubyte[] buf)
Undocumented in source.
writeMessageBegin
void writeMessageBegin(TMessage message)
Undocumented in source.
writeMessageEnd
void writeMessageEnd()
Undocumented in source.
writeStructBegin
void writeStructBegin(TStruct tstruct)
Undocumented in source.
writeStructEnd
void writeStructEnd()
Undocumented in source.
writeFieldBegin
void writeFieldBegin(TField field)
Undocumented in source.
writeFieldEnd
void writeFieldEnd()
Undocumented in source.
writeFieldStop
void writeFieldStop()
Undocumented in source.
writeListBegin
void writeListBegin(TList list)
Undocumented in source.
writeListEnd
void writeListEnd()
Undocumented in source.
writeMapBegin
void writeMapBegin(TMap map)
Undocumented in source.
writeMapEnd
void writeMapEnd()
Undocumented in source.
writeSetBegin
void writeSetBegin(TSet set)
Undocumented in source.
writeSetEnd
void writeSetEnd()
Undocumented in source.
readBool
bool readBool()
Undocumented in source.
readByte
byte readByte()
Undocumented in source.
readI16
short readI16()
Undocumented in source.
readI32
int readI32()
Undocumented in source.
readI64
long readI64()
Undocumented in source.
readDouble
double readDouble()
Undocumented in source.
readString
string readString()
Undocumented in source.
readBinary
ubyte[] readBinary()
Undocumented in source.
readMessageBegin
TMessage readMessageBegin()
Undocumented in source.
readMessageEnd
void readMessageEnd()
Undocumented in source.
readStructBegin
TStruct readStructBegin()
Undocumented in source.
readStructEnd
void readStructEnd()
Undocumented in source.
readFieldBegin
TField readFieldBegin()
Undocumented in source.
readFieldEnd
void readFieldEnd()
Undocumented in source.
readListBegin
TList readListBegin()
Undocumented in source.
readListEnd
void readListEnd()
Undocumented in source.
readMapBegin
TMap readMapBegin()
Undocumented in source.
readMapEnd
void readMapEnd()
Undocumented in source.
readSetBegin
TSet readSetBegin()
Undocumented in source.
readSetEnd
void readSetEnd()
Undocumented in source.
reset
void reset()

Reset any internal state back to a blank slate, if the protocol is stateful.

Meta