public static byte[] sendBArray(byte[] buffer) { byte[] b = new Byte[buffer.Length + c]; Buffer.BlockCopy(new int[] { buffer.Length }, 0, b, 0, c); Buffer.BlockCopy(buffer, 0, b, c, buffer.Length); return b; }