Package org.ldk.structs
Class Init
- java.lang.Object
-
- org.ldk.structs.Init
-
public class Init extends Object
An init message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Initclone()Creates a copy of the Initprotected voidfinalize()InitFeaturesget_features()The relevant features which the sender supportsstatic Initof(InitFeatures features_arg)Constructs a new Init given each fieldstatic Result_InitDecodeErrorZread(byte[] ser)Read a Init from a byte array, created by Init_writevoidset_features(InitFeatures val)The relevant features which the sender supportsbyte[]write()Serialize the Init object into a byte array which can be read by Init_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_features
public InitFeatures get_features()
The relevant features which the sender supports
-
set_features
public void set_features(InitFeatures val)
The relevant features which the sender supports
-
of
public static Init of(InitFeatures features_arg)
Constructs a new Init given each field
-
write
public byte[] write()
Serialize the Init object into a byte array which can be read by Init_read
-
read
public static Result_InitDecodeErrorZ read(byte[] ser)
Read a Init from a byte array, created by Init_write
-
-