本文整理了Java中jnr.posix.POSIX.write()
方法的一些代码示例,展示了POSIX.write()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POSIX.write()
方法的具体详情如下:
包路径:jnr.posix.POSIX
类名称:POSIX
方法名:write
暂无
代码示例来源:origin: com.github.jnr/jnr-posix
public long write(int fd, byte[] buf, long n) {
try { return posix.write(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
public long read(int fd, ByteBuffer buf, long n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public int write(int fd, byte[] buf, int n) {
try { return posix.write(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
public int read(int fd, ByteBuffer buf, int n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public int write(int fd, ByteBuffer buf, int n) {
try { return posix.write(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
public int pread(int fd, byte[] buf, int n, int offset) {
代码示例来源:origin: com.github.jnr/jnr-posix
public long write(int fd, byte[] buf, long n) {
return posix().write(fd, buf, n);
}
public long read(int fd, ByteBuffer buf, long n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public int write(int fd, ByteBuffer buf, int n) {
return posix().write(fd, buf, n);
}
public int pread(int fd, byte[] buf, int n, int offset) {
代码示例来源:origin: com.github.jnr/jnr-posix
public long write(int fd, ByteBuffer buf, long n) {
return posix().write(fd, buf, n);
}
public long pread(int fd, byte[] buf, long n, long offset) {
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int write(int fd, byte[] buf, int n) {
return posix().write(fd, buf, n);
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int write(int fd, byte[] buf, int n) {
return posix().write(fd, buf, n);
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int write(int fd, ByteBuffer buf, int n) {
return posix().write(fd, buf, n);
}
代码示例来源:origin: com.github.jnr/jnr-posix
public int write(int fd, byte[] buf, int n) {
return posix().write(fd, buf, n);
}
public int read(int fd, ByteBuffer buf, int n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public long write(int fd, ByteBuffer buf, long n) {
try { return posix.write(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
public long pread(int fd, byte[] buf, long n, long offset) {
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int write(int fd, ByteBuffer buf, int n) {
try { return posix.write(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int write(int fd, byte[] buf, int n) {
try { return posix.write(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int write(int fd, ByteBuffer buf, int n) {
return posix().write(fd, buf, n);
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int write(int fd, byte[] buf, int n) {
try { return posix.write(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int write(int fd, ByteBuffer buf, int n) {
try { return posix.write(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: org.python/jython
public static int write(PyObject fd, BufferProtocol bytes) {
// Get a buffer view: we can cope with N-dimensional data, but not strided data.
try (PyBuffer buf = bytes.getBuffer(PyBUF.ND)) {
// Get a ByteBuffer of that data, setting the position and limit to the real data.
ByteBuffer bb = buf.getNIOByteBuffer();
Object javaobj = fd.__tojava__(RawIOBase.class);
if (javaobj != Py.NoConversion) {
try {
return ((RawIOBase) javaobj).write(bb);
} catch (PyException pye) {
throw badFD();
}
} else {
return posix.write(getFD(fd).getIntFD(), bb, bb.position());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!