Class OptimizedMarshaller

java.lang.Object
org.gridgain.internal.dr.optimized.OptimizedMarshaller

public class OptimizedMarshaller extends Object
Optimized marshaller.
  • Field Details

  • Constructor Details

    • OptimizedMarshaller

      public OptimizedMarshaller(OptimizedContext ctx)
      Constructor.
      Parameters:
      ctx - Optimized marshaller context.
  • Method Details

    • readOptimized

      public Object readOptimized(byte[] arr, int start, int len)
      Unmarshal object.
      Parameters:
      arr - An array with serialized object data.
      start - Object data offset.
      len - Data length.
      Returns:
      Unmarshalled object.
    • writeUuid

      public static void writeUuid(DataOutput out, UUID uid) throws IOException
      Writes UUID to output stream. This method is meant to be used by implementations of Externalizable interface.
      Parameters:
      out - Output stream.
      uid - UUID to write.
      Throws:
      IOException - If write failed.
    • readUuid

      @Nullable public static @Nullable UUID readUuid(DataInput in) throws IOException
      Reads UUID from input stream. This method is meant to be used by implementations of Externalizable interface.
      Parameters:
      in - Input stream.
      Returns:
      Read UUID.
      Throws:
      IOException - If read failed.