EncodeUint32Ascending encodes the uint32 value using a big-endian 4 byte representation. The bytes are appended to the supplied buffer and the final buffer is returned.
(b []byte, v uint32)
| 132 | // representation. The bytes are appended to the supplied buffer and |
| 133 | // the final buffer is returned. |
| 134 | func EncodeUint32Ascending(b []byte, v uint32) []byte { |
| 135 | return append(b, byte(v>>24), byte(v>>16), byte(v>>8), byte(v)) |
| 136 | } |
| 137 | |
| 138 | // PutUint32Ascending encodes the uint32 value using a big-endian 4 byte |
| 139 | // representation at the specified index, lengthening the input slice if |
no outgoing calls
no test coverage detected