jnr.posix.POSIX.read()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中jnr.posix.POSIX.read()方法的一些代码示例,展示了POSIX.read()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POSIX.read()方法的具体详情如下:
包路径:jnr.posix.POSIX
类名称:POSIX
方法名:read

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));
  }
}

相关文章

POSIX类方法