(u16s []uint16)
| 18 | } |
| 19 | |
| 20 | func uint16LEToByteArray(u16s []uint16) []byte { |
| 21 | bs := make([]byte, 2*len(u16s)) |
| 22 | for i, x := range u16s { |
| 23 | binary.LittleEndian.PutUint16(bs[2*i:], x) |
| 24 | } |
| 25 | return bs |
| 26 | } |
| 27 | |
| 28 | func tToUint16Array(ts []T) []uint16 { |
| 29 | u16s := make([]uint16, len(ts)) |
no outgoing calls
no test coverage detected