Package org.ldk.structs
Class CustomOnionMessageContents
- java.lang.Object
-
- org.ldk.structs.CustomOnionMessageContents
-
public class CustomOnionMessageContents extends Object
The contents of a custom onion message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CustomOnionMessageContents.CustomOnionMessageContentsInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomOnionMessageContents
clone()
Creates a copy of a CustomOnionMessageContentsvoid
destroy()
Destroys the object, freeing associated resources.protected void
finalize()
static CustomOnionMessageContents
new_impl(CustomOnionMessageContents.CustomOnionMessageContentsInterface arg)
long
tlv_type()
Returns the TLV type identifying the message contents.byte[]
write()
Serialize the object into a byte array
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
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.
-
new_impl
public static CustomOnionMessageContents new_impl(CustomOnionMessageContents.CustomOnionMessageContentsInterface arg)
-
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
-
clone
public CustomOnionMessageContents clone()
Creates a copy of a CustomOnionMessageContents
-
-