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

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

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

Input.readFixed64介绍

[英]Reads a fixed long(8 bytes) field value.
[中]读取固定的长(8字节)字段值。

代码示例

代码示例来源:origin: apache/incubator-dubbo

@Override
public Time readFrom(Input input) throws IOException {
  return new Time(input.readFixed64());
}

代码示例来源:origin: apache/incubator-dubbo

@Override
public Time readFrom(Input input) throws IOException {
  return new Time(input.readFixed64());
}

代码示例来源:origin: protostuff/protostuff

@Override
public long readFixed64() throws IOException
{
  return input.readFixed64();
}

代码示例来源:origin: apache/incubator-dubbo

@Override
public void transfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException {
  output.writeFixed64(number, input.readFixed64(), repeated);
}

代码示例来源:origin: apache/incubator-dubbo

@Override
public void transfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException {
  output.writeFixed64(number, input.readFixed64(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public Date readFrom(Input input) throws IOException
{
  return new Date(input.readFixed64());
}

代码示例来源:origin: protostuff/protostuff

@Override
public Date readFrom(Input input) throws IOException
{
  return new Date(input.readFixed64());
}

代码示例来源:origin: protostuff/protostuff

@Override
public Date readFrom(Input input) throws IOException
{
  return new Date(input.readFixed64());
}

代码示例来源:origin: protostuff/protostuff

@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
    boolean repeated) throws IOException
{
  output.writeFixed64(number, input.readFixed64(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
    boolean repeated) throws IOException
{
  output.writeFixed64(number, input.readFixed64(), repeated);
}

代码示例来源:origin: protostuff/protostuff

@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
    boolean repeated) throws IOException
{
  output.writeFixed64(number, input.readFixed64(), repeated);
}

代码示例来源:origin: protostuff/protostuff

if (message.someFixed64 == null)
    message.someFixed64 = new ArrayList<Long>();
  message.someFixed64.add(input.readFixed64());
  break;
default:

代码示例来源:origin: protostuff/protostuff

@Override
public Object readFrom(Input input, Object owner) throws IOException
{
  if (ID_ARRAY_LEN != input.readFieldNumber(this))
    throw new ProtostuffException("Corrupt input.");
  final int len = input.readInt32();
  Date[] array = new Date[len];
  if (input instanceof GraphInput)
  {
    // update the actual reference.
    ((GraphInput) input).updateLast(array, owner);
  }
  for (int i = 0; i < len;)
  {
    switch (input.readFieldNumber(this))
    {
      case ID_ARRAY_DATA:
        array[i++] = new Date(input.readFixed64());
        break;
      case ID_ARRAY_NULLCOUNT:
        i += input.readUInt32();
        break;
      default:
        throw new ProtostuffException("Corrupt input.");
    }
  }
  if (0 != input.readFieldNumber(this))
    throw new ProtostuffException("Corrupt input.");
  return array;
}

代码示例来源:origin: protostuff/protostuff

@Override
public Object readFrom(Input input, Object owner) throws IOException
{
  if (ID_ARRAY_LEN != input.readFieldNumber(this))
    throw new ProtostuffException("Corrupt input.");
  final int len = input.readInt32();
  Date[] array = new Date[len];
  if (input instanceof GraphInput)
  {
    // update the actual reference.
    ((GraphInput) input).updateLast(array, owner);
  }
  for (int i = 0; i < len;)
  {
    switch (input.readFieldNumber(this))
    {
      case ID_ARRAY_DATA:
        array[i++] = new Date(input.readFixed64());
        break;
      case ID_ARRAY_NULLCOUNT:
        i += input.readUInt32();
        break;
      default:
        throw new ProtostuffException("Corrupt input.");
    }
  }
  if (0 != input.readFieldNumber(this))
    throw new ProtostuffException("Corrupt input.");
  return array;
}

代码示例来源: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 14:
  message.someFixed64 = input.readFixed64();
  break;
case 15:

代码示例来源:origin: org.apache.servicecomb/foundation-protobuf

@Override
public Object readFrom(Input input) throws IOException {
 return input.readFixed64();
}

代码示例来源:origin: org.apache.dubbo/dubbo-serialization-protostuff

@Override
public Time readFrom(Input input) throws IOException {
  return new Time(input.readFixed64());
}

代码示例来源:origin: org.apache.dubbo/dubbo

@Override
public void transfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException {
  output.writeFixed64(number, input.readFixed64(), repeated);
}

代码示例来源:origin: org.apache.servicecomb/foundation-protobuf

@Override
public void mergeFrom(Input input, Object message) throws IOException {
 setter.set(message, input.readFixed64());
}

相关文章