Package org.ldk.structs
Class ChannelUpdate
- java.lang.Object
-
- org.ldk.structs.ChannelUpdate
-
public class ChannelUpdate extends Object
A channel_update message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelUpdateclone()Creates a copy of the ChannelUpdateprotected voidfinalize()UnsignedChannelUpdateget_contents()The actual channel updatebyte[]get_signature()A signature of the channel updatestatic ChannelUpdateof(byte[] signature_arg, UnsignedChannelUpdate contents_arg)Constructs a new ChannelUpdate given each fieldstatic Result_ChannelUpdateDecodeErrorZread(byte[] ser)Read a ChannelUpdate from a byte array, created by ChannelUpdate_writevoidset_contents(UnsignedChannelUpdate val)The actual channel updatevoidset_signature(byte[] val)A signature of the channel updatebyte[]write()Serialize the ChannelUpdate object into a byte array which can be read by ChannelUpdate_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_signature
public byte[] get_signature()
A signature of the channel update
-
set_signature
public void set_signature(byte[] val)
A signature of the channel update
-
get_contents
public UnsignedChannelUpdate get_contents()
The actual channel update
-
set_contents
public void set_contents(UnsignedChannelUpdate val)
The actual channel update
-
of
public static ChannelUpdate of(byte[] signature_arg, UnsignedChannelUpdate contents_arg)
Constructs a new ChannelUpdate given each field
-
clone
public ChannelUpdate clone()
Creates a copy of the ChannelUpdate
-
write
public byte[] write()
Serialize the ChannelUpdate object into a byte array which can be read by ChannelUpdate_read
-
read
public static Result_ChannelUpdateDecodeErrorZ read(byte[] ser)
Read a ChannelUpdate from a byte array, created by ChannelUpdate_write
-
-