serial_write() private méthode

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
Résultat int
Exemple #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);
        }
Exemple #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);
        }