Class CustomOnionMessageContents


  • public class CustomOnionMessageContents
    extends Object
    The contents of a custom onion message.
    • Method Detail

      • destroy

        public void destroy()
        Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
      • tlv_type

        public long tlv_type()
        Returns the TLV type identifying the message contents. MUST be >= 64.
      • write

        public byte[] write()
        Serialize the object into a byte array