本文整理了Java中io.netty.buffer.ByteBuf.readChar()
方法的一些代码示例,展示了ByteBuf.readChar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.readChar()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:readChar
[英]Gets a 2-byte UTF-16 character at the current readerIndexand increases the readerIndex by 2 in this buffer.
[中]获取当前readerIndex处的2字节UTF-16字符,并在此缓冲区中将readerIndex增加2。
代码示例来源:origin: netty/netty
@Override
public char readChar() {
return buf.readChar();
}
代码示例来源:origin: redisson/redisson
@Override
public char readChar() {
return buf.readChar();
}
代码示例来源:origin: wildfly/wildfly
@Override
public char readChar() {
return buf.readChar();
}
代码示例来源:origin: micronaut-projects/micronaut-core
@Override
public char readChar() {
return byteBuf.readChar();
}
代码示例来源:origin: netty/netty
@Override
public char readChar() {
checkReadableBytes(2);
return buffer.readChar();
}
代码示例来源:origin: redisson/redisson
@Override
public char readChar() {
checkReadableBytes(2);
return buffer.readChar();
}
代码示例来源:origin: normanmaurer/netty-in-action
@Override
public void decode(ChannelHandlerContext ctx, ByteBuf in,
List<Object> out) throws Exception {
if (in.readableBytes() >= 2) {
out.add(in.readChar());
}
}
}
代码示例来源:origin: wildfly/wildfly
@Override
public char readChar() {
checkReadableBytes(2);
return buffer.readChar();
}
代码示例来源:origin: io.netty/netty-buffer
@Override
public char readChar() {
return buf.readChar();
}
代码示例来源:origin: SlimeKnights/TinkersConstruct
@Override
public void fromBytes(ByteBuf buf) {
short categoryCount = buf.readShort();
for(short i = 0; i < categoryCount; i++) {
int propCount = buf.readInt();
String categoryName = ByteBufUtils.readUTF8String(buf);
ConfigCategory category = new ConfigCategory(categoryName);
categories.add(category);
for(int j = 0; j < propCount; j++) {
String name = ByteBufUtils.readUTF8String(buf);
char type = buf.readChar();
String value = ByteBufUtils.readUTF8String(buf);
category.put(name, new Property(name, value, Property.Type.tryParse(type)));
}
}
}
代码示例来源:origin: Dytanic/CloudNet
@Override
public char readChar()
{
return byteBuf.readChar();
}
代码示例来源:origin: apache/activemq-artemis
@Override
public char readChar() {
return buf.readChar();
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
@Override
public char readChar() {
return buf.readChar();
}
代码示例来源:origin: org.apache.giraph/giraph-core
@Override
public char readChar() throws IOException {
return buffer.readChar();
}
代码示例来源:origin: Darkhax-Minecraft/Bookshelf
private static char[] readCharArray (ByteBuf buf) {
final char[] objects = new char[buf.readInt()];
for (int index = 0; index < objects.length; index++) {
objects[index] = buf.readChar();
}
return objects;
}
代码示例来源:origin: io.netty/netty-codec
@Override
public char readChar() {
checkReadableBytes(2);
return buffer.readChar();
}
代码示例来源:origin: apache/activemq-artemis
@Override
public char readChar() {
checkReadableBytes(2);
return buffer.readChar();
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
@Override
public char readChar() {
checkReadableBytes(2);
return buffer.readChar();
}
代码示例来源:origin: ProtocolSupport/ProtocolSupport
@Override
public char readChar() {
this.checkReadableBytes(2);
return this.buffer.readChar();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public char readChar() {
checkReadableBytes(2);
return buffer.readChar();
}
内容来源于网络,如有侵权,请联系作者删除!