ReadBlock() public method

public ReadBlock ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size int
return int
Beispiel #1
0
        public static void Copy(EndianReader input, EndianWriter output)
        {
            const int BufferSize = 0x1000;

            var buffer = new byte[BufferSize];
            int read;

            while ((read = input.ReadBlock(buffer, 0, BufferSize)) > 0)
            {
                output.WriteBlock(buffer, 0, read);
            }
        }
Beispiel #2
0
        public static void Copy(EndianReader input, EndianWriter output, int size)
        {
            const int BufferSize = 0x1000;

            var buffer = new byte[BufferSize];

            while (size > 0)
            {
                int read = input.ReadBlock(buffer, 0, Math.Min(BufferSize, size));
                output.WriteBlock(buffer, 0, read);
                size -= BufferSize;
            }
        }
Beispiel #3
0
        public static void Copy(EndianReader input, EndianWriter output, int size)
        {
            const int BufferSize = 0x1000;

            var buffer = new byte[BufferSize];

            while (size > 0)
            {
                int read = input.ReadBlock(buffer, 0, Math.Min(BufferSize, size));
                output.WriteBlock(buffer, 0, read);
                size -= BufferSize;
            }
        }
Beispiel #4
0
        public static void Copy(EndianReader input, EndianWriter output)
        {
            const int BufferSize = 0x1000;

            var buffer = new byte[BufferSize];
            int read;

            while ((read = input.ReadBlock(buffer, 0, BufferSize)) > 0)
                output.WriteBlock(buffer, 0, read);
        }