WriteUint16 writes the provided uint16 value to byte slice.
(v uint16)
| 66 | |
| 67 | // WriteUint16 writes the provided uint16 value to byte slice. |
| 68 | func WriteUint16(v uint16) (b []byte) { |
| 69 | b = make([]byte, 2) |
| 70 | NativeEndian.PutUint16(b, v) |
| 71 | return |
| 72 | } |
| 73 | |
| 74 | // WriteUint16Buffer writes the provided uint16 value to the byte slice. |
| 75 | func WriteUint16Buffer(v uint16, b []byte) { |
no outgoing calls
no test coverage detected