System.ConsolePal.Write C# (CSharp) Method

Write() private static method

Writes data from the buffer into the file descriptor.
private static Write ( SafeFileHandle fd, byte buffer, int offset, int count ) : void
fd SafeFileHandle The file descriptor.
buffer byte The buffer from which to write data.
offset int The offset at which the data to write starts in the buffer.
count int The number of bytes to write.
return void
        private static unsafe void Write(SafeFileHandle fd, byte[] buffer, int offset, int count)
        {
            fixed (byte* bufPtr = buffer)
            {
                Write(fd, bufPtr + offset, count);
            }
        }

Same methods

ConsolePal::Write ( SafeFileHandle fd, byte bufPtr, int count ) : void

Usage Example

Example #1
0
            public override void Write(byte[] buffer, int offset, int count)
            {
                ValidateWrite(buffer, offset, count);

                ConsolePal.Write(_handle, buffer, offset, count);
            }