Exemplo n.º 1
0
 static unsafe extern SSizeT writev(int fd, IOVector* iov, int iovcnt);
Exemplo n.º 2
0
 static unsafe extern SSizeT readv(int fd, IOVector* iov, int iovcnt);
Exemplo n.º 3
0
 public int Write(IOVector[] iov)
 {
     return Write (iov, 0, iov.Length);
 }
Exemplo n.º 4
0
        public int WriteV(IOVector* iov, int count)
        {
            //FIXME: Handle EINTR here or elsewhere
            //FIXME: handle r != count
            //TODO: check offset correctness

            int r = (int)writev (Handle, iov, count);
            if (r < 0)
                throw UnixError.GetLastUnixException ();

            return r;
        }
Exemplo n.º 5
0
        public int Write(IOVector[] iov, int offset, int count)
        {
            //FIXME: Handle EINTR here or elsewhere
            //FIXME: handle r != count
            //TODO: check offset correctness

            fixed (IOVector* bufP = &iov[offset]) {
                int r = (int)writev (Handle, bufP + offset, count);
                if (r < 0)
                    throw UnixError.GetLastUnixException ();

                return r;
            }
        }