MCPcopy Create free account
hub / github.com/akalin/gopar / uint16LEToByteArray

Function uint16LEToByteArray

rsec16/matrix_test.go:36–43  ·  view source on GitHub ↗
(u16s []uint16)

Source from the content-addressed store, hash-verified

34}
35
36func uint16LEToByteArray(u16s []uint16) []byte {
37 bs := make([]byte, 2*len(u16s))
38 for i := 0; i < len(u16s); i++ {
39 bs[2*i] = byte(u16s[i])
40 bs[2*i+1] = byte(u16s[i] >> 8)
41 }
42 return bs
43}
44
45func applyMatrixNaive(m gf2p16.Matrix, in, out [][]byte) {
46 if len(in[0]) != len(out[0]) {

Callers 1

applyMatrixNaiveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected