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)
| 136 | // representation. The bytes are appended to the supplied buffer and |
| 137 | // the final buffer is returned. |
| 138 | func EncodeUint32Ascending(b []byte, v uint32) []byte { |
| 139 | return append(b, byte(v>>24), byte(v>>16), byte(v>>8), byte(v)) |
| 140 | } |
| 141 | |
| 142 | // PutUint32Ascending encodes the uint32 value using a big-endian 4 byte |
| 143 | // representation at the specified index, lengthening the input slice if |
no outgoing calls
no test coverage detected
searching dependent graphs…