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
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }