Package org.ldk.structs
Class ChannelFeatures
- java.lang.Object
-
- org.ldk.structs.ChannelFeatures
-
public class ChannelFeatures extends Object
Features used within a `channel_announcement` message.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelFeatures
clone()
Creates a copy of the ChannelFeaturesstatic ChannelFeatures
empty()
Create a blank Features with no features setboolean
eq(ChannelFeatures b)
Checks if two ChannelFeaturess contain equal inner contents.protected void
finalize()
static ChannelFeatures
known()
Creates a Features with the bits set which are known by the implementationstatic Result_ChannelFeaturesDecodeErrorZ
read(byte[] ser)
Read a ChannelFeatures from a byte array, created by ChannelFeatures_writebyte[]
write()
Serialize the ChannelFeatures object into a byte array which can be read by ChannelFeatures_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(ChannelFeatures b)
Checks if two ChannelFeaturess contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
clone
public ChannelFeatures clone()
Creates a copy of the ChannelFeatures
-
empty
public static ChannelFeatures empty()
Create a blank Features with no features set
-
known
public static ChannelFeatures known()
Creates a Features with the bits set which are known by the implementation
-
write
public byte[] write()
Serialize the ChannelFeatures object into a byte array which can be read by ChannelFeatures_read
-
read
public static Result_ChannelFeaturesDecodeErrorZ read(byte[] ser)
Read a ChannelFeatures from a byte array, created by ChannelFeatures_write
-
-