[]int16转[]byte

_Slience = make([]int16, 0)

buffer := new(bytes.Buffer)

binary.Write(buffer, binary.LittleEndian, _Slience)

output := buffer.Bytes()

你可能感兴趣的:(golang)