View source on GitHub |
Decoder that decodes a bytes buffer into a protocol buffer message.
Inherits From: expected_type
google.appengine.datastore.sortable_pb_encoder.Decoder(
buf, idx=0, limit=None
)
Methods
DecodeMessage
@classmethod
DecodeMessage( prototype, buf, idx=0, limit=None )
Get16
Get16()
Get the next 16 bits from the buffer.
Get32
Get32()
Get the next 32 bits from the buffer.
Get64
Get64()
Get the next 64 bits from the buffer.
Get8
Get8()
Get the next 8 bits from the buffer.
GetBoolean
GetBoolean()
Decode the next bits as a boolean value.
GetDouble
GetDouble()
Decode the next bits as a double value.
GetFloat
GetFloat()
Decode the next bits as a floating point value.
GetMessage
GetMessage(
prototype
)
Decode a message.
Args | |
---|---|
prototype
|
The prototype of the protocol buffer message. |
Returns | |
---|---|
The decoded message. |
GetPrefixedString
GetPrefixedString()
GetVarInt32
GetVarInt32()
Decode the next bits as a varint
and check it's a 32 bit value.
GetVarInt64
GetVarInt64()
Decode the next bits as a varint
.
GetVarUint64
GetVarUint64()
Decode the next bits as a varint
and check it's non-negative value.