wire_format
Constants and static functions to support protocol buffer wire format.
IsTypePackable(field_type)
Return true iff packable = true is valid for fields of this type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
field_type | a FieldDescriptor::Type value. | required |
Returns:
Type | Description |
---|---|
True iff fields of this type are packable. |
Source code in client/ayon_hiero/vendor/google/protobuf/internal/wire_format.py
259 260 261 262 263 264 265 266 267 268 |
|
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.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
field_number | Expected to be an integer in the range [1, 1 << 29) | required | |
wire_type | One of the WIRETYPE_* constants. | required |
Source code in client/ayon_hiero/vendor/google/protobuf/internal/wire_format.py
80 81 82 83 84 85 86 87 88 89 90 |
|
TagByteSize(field_number)
Returns the bytes required to serialize a tag with this field number.
Source code in client/ayon_hiero/vendor/google/protobuf/internal/wire_format.py
224 225 226 227 |
|
UnpackTag(tag)
The inverse of PackTag(). Given an unsigned 32-bit number, returns a (field_number, wire_type) tuple.
Source code in client/ayon_hiero/vendor/google/protobuf/internal/wire_format.py
93 94 95 96 97 |
|
ZigZagDecode(value)
Inverse of ZigZagEncode().
Source code in client/ayon_hiero/vendor/google/protobuf/internal/wire_format.py
110 111 112 113 114 |
|
ZigZagEncode(value)
ZigZag Transform: Encodes signed integers so that they can be effectively used with varint encoding. See wire_format.h for more details.
Source code in client/ayon_hiero/vendor/google/protobuf/internal/wire_format.py
100 101 102 103 104 105 106 107 |
|