Variables | |
string | __author__ = 'robinson@google.com (Will Robinson)' |
int | _WIRETYPE_MAX = 5 |
string | FORMAT_DOUBLE_LITTLE_ENDIAN = '<d' |
string | FORMAT_FLOAT_LITTLE_ENDIAN = '<f' |
string | FORMAT_UINT32_LITTLE_ENDIAN = '<I' |
string | FORMAT_UINT64_LITTLE_ENDIAN = '<Q' |
INT32_MAX = int((1 << 31) - 1) | |
INT32_MIN = int(-(1 << 31)) | |
tuple | INT64_MAX = (1 << 63) - 1 |
INT64_MIN = -(1 << 63) | |
tuple | NON_PACKABLE_TYPES |
int | TAG_TYPE_BITS = 3 |
tuple | TAG_TYPE_MASK = (1 << TAG_TYPE_BITS) - 1 |
tuple | UINT32_MAX = (1 << 32) - 1 |
tuple | UINT64_MAX = (1 << 64) - 1 |
int | WIRETYPE_END_GROUP = 4 |
int | WIRETYPE_FIXED32 = 5 |
int | WIRETYPE_FIXED64 = 1 |
int | WIRETYPE_LENGTH_DELIMITED = 2 |
int | WIRETYPE_START_GROUP = 3 |
int | WIRETYPE_VARINT = 0 |
|
private |
Returns the number of bytes required to serialize a single varint using boundary value comparisons. (unrolled loop optimization -WPierce) uint64 must be unsigned.
Definition at line 232 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.BoolByteSize | ( | field_number, | |
b | |||
) |
Definition at line 175 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.BytesByteSize | ( | field_number, | |
b | |||
) |
Definition at line 187 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.DoubleByteSize | ( | field_number, | |
double | |||
) |
Definition at line 171 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.EnumByteSize | ( | field_number, | |
enum | |||
) |
Definition at line 179 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.Fixed32ByteSize | ( | field_number, | |
fixed32 | |||
) |
Definition at line 151 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.Fixed64ByteSize | ( | field_number, | |
fixed64 | |||
) |
Definition at line 155 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.FloatByteSize | ( | field_number, | |
flt | |||
) |
Definition at line 167 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.GroupByteSize | ( | field_number, | |
message | |||
) |
Definition at line 193 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.Int32ByteSize | ( | field_number, | |
int32 | |||
) |
Definition at line 122 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.Int32ByteSizeNoTag | ( | int32 | ) |
Definition at line 126 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.Int64ByteSize | ( | field_number, | |
int64 | |||
) |
Definition at line 130 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.IsTypePackable | ( | field_type | ) |
Return true iff packable = true is valid for fields of this type. Args: field_type: a FieldDescriptor::Type value. Returns: True iff fields of this type are packable.
Definition at line 259 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.MessageByteSize | ( | field_number, | |
message | |||
) |
Definition at line 198 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.MessageSetItemByteSize | ( | field_number, | |
msg | |||
) |
Definition at line 204 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.PackTag | ( | field_number, | |
wire_type | |||
) |
Returns an unsigned 32-bit integer that encodes the field number and wire type information in standard protocol message wire format. Args: field_number: Expected to be an integer in the range [1, 1 << 29) wire_type: One of the WIRETYPE_* constants.
Definition at line 80 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.SFixed32ByteSize | ( | field_number, | |
sfixed32 | |||
) |
Definition at line 159 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.SFixed64ByteSize | ( | field_number, | |
sfixed64 | |||
) |
Definition at line 163 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.SInt32ByteSize | ( | field_number, | |
int32 | |||
) |
Definition at line 143 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.SInt64ByteSize | ( | field_number, | |
int64 | |||
) |
Definition at line 147 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.StringByteSize | ( | field_number, | |
string | |||
) |
Definition at line 183 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.TagByteSize | ( | field_number | ) |
Returns the bytes required to serialize a tag with this field number.
Definition at line 224 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.UInt32ByteSize | ( | field_number, | |
uint32 | |||
) |
Definition at line 135 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.UInt64ByteSize | ( | field_number, | |
uint64 | |||
) |
Definition at line 139 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.UnpackTag | ( | tag | ) |
The inverse of PackTag(). Given an unsigned 32-bit number, returns a (field_number, wire_type) tuple.
Definition at line 93 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.ZigZagDecode | ( | value | ) |
Inverse of ZigZagEncode().
Definition at line 110 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
def google.protobuf.internal.wire_format.ZigZagEncode | ( | value | ) |
ZigZag Transform: Encodes signed integers so that they can be effectively used with varint encoding. See wire_format.h for more details.
Definition at line 100 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
|
private |
Definition at line 33 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
|
private |
Definition at line 53 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
string google.protobuf.internal.wire_format.FORMAT_DOUBLE_LITTLE_ENDIAN = '<d' |
Definition at line 69 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
string google.protobuf.internal.wire_format.FORMAT_FLOAT_LITTLE_ENDIAN = '<f' |
Definition at line 68 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
string google.protobuf.internal.wire_format.FORMAT_UINT32_LITTLE_ENDIAN = '<I' |
Definition at line 66 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
string google.protobuf.internal.wire_format.FORMAT_UINT64_LITTLE_ENDIAN = '<Q' |
Definition at line 67 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
google.protobuf.internal.wire_format.INT32_MAX = int((1 << 31) - 1) |
Definition at line 57 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
google.protobuf.internal.wire_format.INT32_MIN = int(-(1 << 31)) |
Definition at line 58 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
tuple google.protobuf.internal.wire_format.INT64_MAX = (1 << 63) - 1 |
Definition at line 61 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
google.protobuf.internal.wire_format.INT64_MIN = -(1 << 63) |
Definition at line 62 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
tuple google.protobuf.internal.wire_format.NON_PACKABLE_TYPES |
Definition at line 251 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
int google.protobuf.internal.wire_format.TAG_TYPE_BITS = 3 |
Definition at line 40 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
tuple google.protobuf.internal.wire_format.TAG_TYPE_MASK = (1 << TAG_TYPE_BITS) - 1 |
Definition at line 41 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
tuple google.protobuf.internal.wire_format.UINT32_MAX = (1 << 32) - 1 |
Definition at line 59 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
tuple google.protobuf.internal.wire_format.UINT64_MAX = (1 << 64) - 1 |
Definition at line 63 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
int google.protobuf.internal.wire_format.WIRETYPE_END_GROUP = 4 |
Definition at line 51 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
int google.protobuf.internal.wire_format.WIRETYPE_FIXED32 = 5 |
Definition at line 52 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
int google.protobuf.internal.wire_format.WIRETYPE_FIXED64 = 1 |
Definition at line 48 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
int google.protobuf.internal.wire_format.WIRETYPE_LENGTH_DELIMITED = 2 |
Definition at line 49 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
int google.protobuf.internal.wire_format.WIRETYPE_START_GROUP = 3 |
Definition at line 50 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.
int google.protobuf.internal.wire_format.WIRETYPE_VARINT = 0 |
Definition at line 47 of file bloaty/third_party/protobuf/python/google/protobuf/internal/wire_format.py.