public static LuaByteBuffer GetVoiceData() { byte[] bs = new byte[Util.Random(10000, 40000)]; for (int i = 0; i < bs.Length; i++) { bs[i] = (byte)Util.Random(-128, 127); } Debug.Log("发送起始字节:" + bs[0] + "| 最后个字节:" + bs[bs.Length - 1] + "|长度 " + bs.Length); LuaByteBuffer bytes = new LuaByteBuffer(bs); return(bytes); }