View source on GitHub |
Encodes protocol buffers in a form that sorts nicely.
Inherits From: expected_type
google.appengine.datastore.sortable_pb_encoder.Encoder()
Methods
Buffer
Buffer()
EncodeMessage
@classmethod
EncodeMessage( msg )
Put16
Put16(
value
)
Encode a fixed size 16 bit value in the buffer.
Put32
Put32(
value
)
Encode a fixed size 32 bit value in the buffer.
Put64
Put64(
value
)
Encode a fixed size 64 bit value in the buffer.
PutBoolean
PutBoolean(
v
)
Encode a boolean value in the buffer.
PutBytes
PutBytes(
value
)
Encode a byte array in the buffer.
PutDouble
PutDouble(
value
)
Encode a double value in the buffer.
PutFloat
PutFloat(
value
)
Encode a floating point value in the buffer.
PutMessage
PutMessage(
msg
)
Encode a protocol buffer message on the buffer.
PutPrefixedString
PutPrefixedString(
value
)
PutVarInt32
PutVarInt32(
value
)
Encode a 32 bit varint
value in the buffer.
PutVarInt64
PutVarInt64(
value
)
Encode a 64 bit varint
value in the buffer.
PutVarUint64
PutVarUint64(
value
)
Encode a 64 bit unsigned varint
value in the buffer.