示例#1
0
            public static byte[] GetHeaderBytes(uint unknown, uint lineCount)
            {
                var bytes = new byte[8];

                BitExtensions.ToBytesBigEndian(unknown, bytes);
                BitExtensions.ToBytesBigEndian(lineCount, bytes, 4);
                return(bytes);
            }
示例#2
0
            public static byte[] GetBytes(ushort StartY, ushort EndY, ushort StartX)
            {
                var bytes = new byte[6];

                BitExtensions.ToBytesBigEndian(StartY, bytes);
                BitExtensions.ToBytesBigEndian(EndY, bytes, 2);
                BitExtensions.ToBytesBigEndian(StartX, bytes, 4);
                return(bytes);
            }