io.protostuff.Input.readFixed32()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(99)

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

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

相关文章