热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

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

本文整理了Java中jnr.posix.POSIX.read()方法的一些代码示例,展示了POSIX.read()的具体用法。这些代码示例主要

本文整理了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));
}
}

推荐阅读
  • 开发笔记:加密&json&StringIO模块&BytesIO模块
    篇首语:本文由编程笔记#小编为大家整理,主要介绍了加密&json&StringIO模块&BytesIO模块相关的知识,希望对你有一定的参考价值。一、加密加密 ... [详细]
  • XML介绍与使用的概述及标签规则
    本文介绍了XML的基本概念和用途,包括XML的可扩展性和标签的自定义特性。同时还详细解释了XML标签的规则,包括标签的尖括号和合法标识符的组成,标签必须成对出现的原则以及特殊标签的使用方法。通过本文的阅读,读者可以对XML的基本知识有一个全面的了解。 ... [详细]
  • 本文整理了Java中org.apache.solr.common.SolrDocument.setField()方法的一些代码示例,展示了SolrDocum ... [详细]
  • 本文整理了Java中org.apache.hadoop.hive.ql.plan.ExprNodeColumnDesc.getTypeInfo()方法的一些代码示例,展 ... [详细]
  • Python语法上的区别及注意事项
    本文介绍了Python2x和Python3x在语法上的区别,包括print语句的变化、除法运算结果的不同、raw_input函数的替代、class写法的变化等。同时还介绍了Python脚本的解释程序的指定方法,以及在不同版本的Python中如何执行脚本。对于想要学习Python的人来说,本文提供了一些注意事项和技巧。 ... [详细]
  • 使用Ubuntu中的Python获取浏览器历史记录原文: ... [详细]
  • Spring特性实现接口多类的动态调用详解
    本文详细介绍了如何使用Spring特性实现接口多类的动态调用。通过对Spring IoC容器的基础类BeanFactory和ApplicationContext的介绍,以及getBeansOfType方法的应用,解决了在实际工作中遇到的接口及多个实现类的问题。同时,文章还提到了SPI使用的不便之处,并介绍了借助ApplicationContext实现需求的方法。阅读本文,你将了解到Spring特性的实现原理和实际应用方式。 ... [详细]
  • Java String与StringBuffer的区别及其应用场景
    本文主要介绍了Java中String和StringBuffer的区别,String是不可变的,而StringBuffer是可变的。StringBuffer在进行字符串处理时不生成新的对象,内存使用上要优于String类。因此,在需要频繁对字符串进行修改的情况下,使用StringBuffer更加适合。同时,文章还介绍了String和StringBuffer的应用场景。 ... [详细]
  • 自动轮播,反转播放的ViewPagerAdapter的使用方法和效果展示
    本文介绍了如何使用自动轮播、反转播放的ViewPagerAdapter,并展示了其效果。该ViewPagerAdapter支持无限循环、触摸暂停、切换缩放等功能。同时提供了使用GIF.gif的示例和github地址。通过LoopFragmentPagerAdapter类的getActualCount、getActualItem和getActualPagerTitle方法可以实现自定义的循环效果和标题展示。 ... [详细]
  • 标题: ... [详细]
  • Java中包装类的设计原因以及操作方法
    本文主要介绍了Java中设计包装类的原因以及操作方法。在Java中,除了对象类型,还有八大基本类型,为了将基本类型转换成对象,Java引入了包装类。文章通过介绍包装类的定义和实现,解答了为什么需要包装类的问题,并提供了简单易用的操作方法。通过本文的学习,读者可以更好地理解和应用Java中的包装类。 ... [详细]
  • 先看官方文档TheJavaTutorialshavebeenwrittenforJDK8.Examplesandpracticesdescribedinthispagedontta ... [详细]
  • 本文介绍了在处理不规则数据时如何使用Python自动提取文本中的时间日期,包括使用dateutil.parser模块统一日期字符串格式和使用datefinder模块提取日期。同时,还介绍了一段使用正则表达式的代码,可以支持中文日期和一些特殊的时间识别,例如'2012年12月12日'、'3小时前'、'在2012/12/13哈哈'等。 ... [详细]
  • 本文整理了Java面试中常见的问题及相关概念的解析,包括HashMap中为什么重写equals还要重写hashcode、map的分类和常见情况、final关键字的用法、Synchronized和lock的区别、volatile的介绍、Syncronized锁的作用、构造函数和构造函数重载的概念、方法覆盖和方法重载的区别、反射获取和设置对象私有字段的值的方法、通过反射创建对象的方式以及内部类的详解。 ... [详细]
  • ejava,刘聪dejava
    本文目录一览:1、什么是Java?2、java ... [详细]
author-avatar
霸气的艳子_612
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有