serial_write() private method

private serial_write ( RJCP.IO.Ports.Native.Unix.SafeSerialHandle handle, IntPtr buffer, int length ) : int
handle RJCP.IO.Ports.Native.Unix.SafeSerialHandle
buffer IntPtr
length int
return int
示例#1
0
        public int serial_write(SafeSerialHandle handle, IntPtr data, int length)
        {
            int result = UnsafeNativeMethods.serial_write(handle, data, length);

            errno = Marshal.GetLastWin32Error();
            return(result);
        }
示例#2
0
        public int serial_write(IntPtr handle, IntPtr buffer, int length)
        {
            int result = UnsafeNativeMethods.serial_write(handle, buffer, length);

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