EncodeUint16Ascending encodes the uint16 value using a big-endian 2 byte representation. The bytes are appended to the supplied buffer and the final buffer is returned.
(b []byte, v uint16)
| 184 | // representation. The bytes are appended to the supplied buffer and |
| 185 | // the final buffer is returned. |
| 186 | func EncodeUint16Ascending(b []byte, v uint16) []byte { |
| 187 | return append(b, byte(v>>8), byte(v)) |
| 188 | } |
| 189 | |
| 190 | // PutUint16Ascending encodes the uint16 value using a big-endian 2 byte |
| 191 | // representation at the specified index, lengthening the input slice if |
no outgoing calls
no test coverage detected
searching dependent graphs…