serial_read() 개인적인 메소드

private serial_read ( RJCP.IO.Ports.Native.Unix.SafeSerialHandle handle, IntPtr buffer, int length ) : int
handle RJCP.IO.Ports.Native.Unix.SafeSerialHandle
buffer IntPtr
length int
리턴 int
예제 #1
0
        public int serial_read(SafeSerialHandle handle, IntPtr buffer, int length)
        {
            int result = UnsafeNativeMethods.serial_read(handle, buffer, length);

            errno = Marshal.GetLastWin32Error();
            return(result);
        }