congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Output.writeFixed64
Code IndexAdd Tabnine to your IDE (free)

How to use
writeFixed64
method
in
io.protostuff.Output

Best Java code snippets using io.protostuff.Output.writeFixed64 (Showing top 20 results out of 315)

origin: apache/incubator-dubbo

@Override
public void writeTo(Output output, int number, Time time, boolean repeated) throws IOException {
  output.writeFixed64(number, time.getTime(), repeated);
}
origin: apache/incubator-dubbo

@Override
public void writeTo(Output output, int number, Time time, boolean repeated) throws IOException {
  output.writeFixed64(number, time.getTime(), repeated);
}
origin: protostuff/protostuff

@Override
public void writeFixed64(int fieldNumber, long value, boolean repeated) throws IOException
{
  output.writeFixed64(fieldNumber, value, 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: 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 void writeTo(Output output, int number, Date value,
    boolean repeated) throws IOException
{
  output.writeFixed64(number, value.getTime(), repeated);
}
origin: protostuff/protostuff

@Override
public void writeTo(Output output, int number, Date value,
    boolean repeated) throws IOException
{
  output.writeFixed64(number, value.getTime(), repeated);
}
origin: protostuff/protostuff

@Override
public void writeTo(Output output, int number, Date value,
    boolean repeated) throws IOException
{
  output.writeFixed64(number, value.getTime(), 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

@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 writeTo(Output output, Object value) throws IOException
  {
    Date[] array = (Date[]) value;
    output.writeInt32(ID_ARRAY_LEN, array.length, false);
    int nullCount = 0;
    for (int i = 0, len = array.length; i < len; i++)
    {
      Date v = array[i];
      if (v != null)
      {
        if (nullCount != 0)
        {
          output.writeUInt32(ID_ARRAY_NULLCOUNT, nullCount, false);
          nullCount = 0;
        }
        output.writeFixed64(ID_ARRAY_DATA, v.getTime(), true);
      }
      else if (allowNullArrayElement)
      {
        nullCount++;
      }
    }
    // if last element is null
    if (nullCount != 0)
      output.writeUInt32(ID_ARRAY_NULLCOUNT, nullCount, false);
  }
}
origin: protostuff/protostuff

public void writeTo(Output output, PojoWithRepeated message) throws IOException
{
  if (message.someInt32 != null)
  {
    for (Integer someInt32 : message.someInt32)
    {
      if (someInt32 != null)
        output.writeInt32(1, someInt32, true);
    }
  }
  if (message.someFixed64 != null)
  {
    for (Long someFixed64 : message.someFixed64)
    {
      if (someFixed64 != null)
        output.writeFixed64(2, someFixed64, true);
    }
  }
}
origin: protostuff/protostuff

  @Override
  public void writeTo(Output output, Object value) throws IOException
  {
    Date[] array = (Date[]) value;
    output.writeInt32(ID_ARRAY_LEN, array.length, false);
    int nullCount = 0;
    for (int i = 0, len = array.length; i < len; i++)
    {
      Date v = array[i];
      if (v != null)
      {
        if (nullCount != 0)
        {
          output.writeUInt32(ID_ARRAY_NULLCOUNT, nullCount, false);
          nullCount = 0;
        }
        output.writeFixed64(ID_ARRAY_DATA, v.getTime(), true);
      }
      else if (allowNullArrayElement)
      {
        nullCount++;
      }
    }
    // if last element is null
    if (nullCount != 0)
      output.writeUInt32(ID_ARRAY_NULLCOUNT, nullCount, false);
  }
}
origin: protostuff/protostuff

@Override
public void writeTo(Output output, UnsignedNumbers message) throws IOException
{
  if (message.uint32 != null)
    output.writeUInt32(1, message.uint32, false);
  if (message.uint64 != null)
    output.writeUInt64(2, message.uint64, false);
  if (message.fixed32 != null)
    output.writeFixed32(3, message.fixed32, false);
  if (message.fixed64 != null)
    output.writeFixed64(4, message.fixed64, false);
}
origin: protostuff/protostuff

@Override
public void writeTo(Output output, PojoWithInts message) throws IOException
{
  if (message.someInt32 != 0)
    output.writeInt32(1, message.someInt32, false);
  if (message.someUint32 != 0)
    output.writeUInt32(2, message.someUint32, false);
  if (message.someSint32 != 0)
    output.writeSInt32(3, message.someSint32, false);
  if (message.someFixed32 != 0)
    output.writeFixed32(4, message.someFixed32, false);
  if (message.someSfixed32 != 0)
    output.writeSFixed32(5, message.someSfixed32, false);
  if (message.someInt64 != 0)
    output.writeInt64(11, message.someInt64, false);
  if (message.someUint64 != 0)
    output.writeUInt64(12, message.someUint64, false);
  if (message.someSint64 != 0)
    output.writeSInt64(13, message.someSint64, false);
  if (message.someFixed64 != 0)
    output.writeFixed64(14, message.someFixed64, false);
  if (message.someSfixed64 != 0)
    output.writeSFixed64(15, message.someSfixed64, false);
}
origin: org.apache.dubbo/dubbo-serialization-protostuff

@Override
public void writeTo(Output output, int number, Time time, boolean repeated) throws IOException {
  output.writeFixed64(number, time.getTime(), repeated);
}
origin: org.apache.dubbo/dubbo

@Override
public void writeTo(Output output, int number, Time time, boolean repeated) throws IOException {
  output.writeFixed64(number, time.getTime(), repeated);
}
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.dubbo/dubbo-serialization-protostuff

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

Javadoc

Writes a fixed long(8 bytes) field.

Popular methods of Output

  • writeString
  • writeObject
  • writeBytes
  • writeInt32
  • writeInt64
  • writeBool
  • writeDouble
  • writeByteArray
  • writeEnum
    Writes a enum(its number) field.
  • writeUInt32
  • writeFloat
  • writeUInt64
  • writeFloat,
  • writeUInt64,
  • writeByteRange,
  • writeSFixed64,
  • writeFixed32,
  • writeSFixed32,
  • writeSInt32,
  • writeSInt64

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • String (java.lang)
  • JCheckBox (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now