Interface BinaryMarshaller<T>


public interface BinaryMarshaller<T>
A marshaller used by the native bridge processor to read or write method parameters and results of a custom type. Marshallers are used to support types that are not directly implemented by the native bridge processor.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    inferSize(T object)
    Estimates a size in bytes needed to marshall given object.
    default int
    Estimates a size in bytes needed to marshall Out parameter passed back to caller from a foreign method call.
    static <T> BinaryMarshaller<T>
    nullable(BinaryMarshaller<T> forMarshaller)
    Decorates forMarshaller by a BinaryMarshaller handling null values.
    Deserializes and recreates an object passed to a foreign method.
    default void
    readUpdate(BinaryInput input, T object)
    Deserializes and updates the mutable state of a given object to support Out semantics.
    void
    write(BinaryOutput output, T object)
    Decomposes and serializes the given object passed to a foreign method.
    default void
    writeUpdate(BinaryOutput output, T object)
    Decomposes and serializes the mutable state of a given object to support Out semantics.