本文整理了Java中io.protostuff.Input.readFixed32()
方法的一些代码示例,展示了Input.readFixed32()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Input.readFixed32()
方法的具体详情如下:
包路径:io.protostuff.Input
类名称:Input
方法名:readFixed32
[英]Reads a fixed int(4 bytes) field value.
[中]读取固定的整型(4字节)字段值。
代码示例来源:origin: protostuff/protostuff
@Override
public int readFixed32() throws IOException
{
return input.readFixed32();
}
代码示例来源:origin: protostuff/protostuff
@Override
public void mergeFrom(Input input, UnsignedNumbers message) throws IOException
{
for (int number = input.readFieldNumber(this); ; number = input.readFieldNumber(this))
{
switch (number)
{
case 0:
return;
case 1:
message.uint32 = input.readUInt32();
break;
case 2:
message.uint64 = input.readUInt64();
break;
case 3:
message.fixed32 = input.readFixed32();
break;
case 4:
message.fixed64 = input.readFixed64();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: protostuff/protostuff
break;
case 4:
message.someFixed32 = input.readFixed32();
break;
case 5:
代码示例来源:origin: org.apache.servicecomb/foundation-protobuf
@Override
public Object readFrom(Input input) throws IOException {
return input.readFixed32();
}
代码示例来源:origin: org.apache.servicecomb/foundation-protobuf
@Override
public void mergeFrom(Input input, Object message) throws IOException {
setter.set(message, input.readFixed32());
}
}
内容来源于网络,如有侵权,请联系作者删除!