io.protostuff.Output.writeInt32()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(195)

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

Output.writeInt32介绍

[英]Writes a variable int field.
[中]写入变量int字段。

代码示例

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

public void writeTo(Output output, GeneratedInt1 message) throws IOException
{
  if(message.a0 != null)
    output.writeInt32(1, message.a0, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

@Override
public void writeInt32(int fieldNumber, int value, boolean repeated) throws IOException
{
  output.writeInt32(fieldNumber, value, repeated);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

protected void writeLengthTo(Output output, int len, boolean primitive)
    throws IOException
{
  output.writeInt32(ID_ARRAY_LEN, len, false);
}

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

@Override
public void writeTo(Output output, int number, Integer value,
    boolean repeated) throws IOException
{
  output.writeInt32(number, value.intValue(), repeated);
}

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

@Override
public void writeTo(Output output, int number, Integer value,
    boolean repeated) throws IOException
{
  output.writeInt32(number, value.intValue(), repeated);
}

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

@Override
public void writeTo(Output output, int number, Integer value,
    boolean repeated) throws IOException
{
  output.writeInt32(number, value.intValue(), repeated);
}

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

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

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

@Override
public void writeTo(Output output, PojoWithBiggerByteArray message) throws IOException
{
  output.writeInt32(1, message.id, false);
  output.writeByteArray(2, message.b, false);
  output.writeInt64(3, message.ts, false);
}

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

@Override
public void writeTo(Output output, Baz message) throws IOException
{
  if (message.id != 0)
    output.writeInt32(1, message.id, false);
  if (message.name != null)
    output.writeString(2, message.name, false);
  if (message.timestamp != 0l)
    output.writeInt64(3, message.timestamp, false);
}

相关文章