System.ConsolePal.Write C# (CSharp) 메소드

Write() 개인적인 정적인 메소드

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.
리턴 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

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

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