Interface RpcMarshalable

  • All Known Implementing Classes:
    ExternalEnv

    public interface RpcMarshalable
    Defines the methods required to marshal an arbitrary object onto a ByteBuffer for the Perforce RPC connection.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void marshal​(java.nio.ByteBuffer buf)
      Marshal the associated object onto the passed-in ByteBuffer.
    • Method Detail

      • marshal

        void marshal​(java.nio.ByteBuffer buf)
              throws java.nio.BufferOverflowException
        Marshal the associated object onto the passed-in ByteBuffer.
        Parameters:
        buf - non-null ByteBuffer; should be big enough to take the marshaled object
        Throws:
        java.nio.BufferOverflowException - if the passed-in buffer wasn't big enough