本文整理了Java中jnr.posix.POSIX.read()
方法的一些代码示例,展示了POSIX.read()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POSIX.read()
方法的具体详情如下:
包路径:jnr.posix.POSIX
类名称:POSIX
方法名:read
暂无
代码示例来源:origin: com.github.jnr/jnr-posix
public int read(int fd, ByteBuffer buf, int n) {
return posix().read(fd, buf, n);
}
public int write(int fd, ByteBuffer buf, int n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public int read(int fd, byte[] buf, int n)
{
return posix().read(fd, buf, n);
}
public int write(int fd, byte[] buf, int n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public int read(int fd, ByteBuffer buf, int n) {
try { return posix.read(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
public int write(int fd, ByteBuffer buf, int n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public long read(int fd, ByteBuffer buf, long n) {
return posix().read(fd, buf, n);
}
public long write(int fd, ByteBuffer buf, long n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public long read(int fd, byte[] buf, long n) {
try { return posix.read(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
public long write(int fd, byte[] buf, long n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public long read(int fd, byte[] buf, long n) {
return posix().read(fd, buf, n);
}
public long write(int fd, byte[] buf, long n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public int read(int fd, byte[] buf, int n) {
try { return posix.read(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
public int write(int fd, byte[] buf, int n) {
代码示例来源:origin: com.github.jnr/jnr-posix
public long read(int fd, ByteBuffer buf, long n) {
try { return posix.read(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
public long write(int fd, ByteBuffer buf, long n) {
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int read(int fd, ByteBuffer buf, int n) {
try { return posix.read(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int read(int fd, ByteBuffer buf, int n) {
return posix().read(fd, buf, n);
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int read(int fd, byte[] buf, int n) {
try { return posix.read(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int read(int fd, ByteBuffer buf, int n) {
try { return posix.read(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int read(int fd, byte[] buf, int n) {
try { return posix.read(fd, buf, n); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int read(int fd, ByteBuffer buf, int n) {
return posix().read(fd, buf, n);
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int read(int fd, byte[] buf, int n) {
return posix().read(fd, buf, n);
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int read(int fd, byte[] buf, int n) {
return posix().read(fd, buf, n);
}
代码示例来源:origin: org.python/jython
public static PyObject read(PyObject fd, int buffersize) {
Object javaobj = fd.__tojava__(RawIOBase.class);
if (javaobj != Py.NoConversion) {
try {
return new PyString(StringUtil.fromBytes(((RawIOBase) javaobj).read(buffersize)));
} catch (PyException pye) {
throw badFD();
}
} else {
ByteBuffer buffer = ByteBuffer.allocate(buffersize);
posix.read(getFD(fd).getIntFD(), buffer, buffersize);
return new PyString(StringUtil.fromBytes(buffer));
}
}
内容来源于网络,如有侵权,请联系作者删除!