Interface PolyBoundEncoder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void encode​(RecordClassDescriptor rcd, java.lang.Object message, deltix.util.memory.MemoryDataOutput out)
      Encodes an object, starting at current position of the specified MemoryDataOutput.
      void encode​(java.lang.Object message, deltix.util.memory.MemoryDataOutput out)
      Encodes an object, starting at current position of the specified MemoryDataOutput.
    • Method Detail

      • encode

        void encode​(java.lang.Object message,
                    deltix.util.memory.MemoryDataOutput out)
        Encodes an object, starting at current position of the specified MemoryDataOutput.
        Parameters:
        out - A MemoryDataOutput to write to.
        message - A message object to encode.
      • encode

        void encode​(RecordClassDescriptor rcd,
                    java.lang.Object message,
                    deltix.util.memory.MemoryDataOutput out)
        Encodes an object, starting at current position of the specified MemoryDataOutput. The RecordClassDescriptor argument is necessary when there are multiple record class descriptors bound to the same Java class.
        Parameters:
        rcd - The descriptor to use.
        out - A MemoryDataOutput to write to.
        message - A message object to encode.