static byte[] CopyBytes(byte[] src, int offset, int count) { byte[] dst = new byte[count]; Buffer.BlockCopy(src, offset, dst, 0, count); return dst; }