3 public class ReplyShortChannelIdsEnd {
5 public internal(set) var cOpaqueStruct: LDKReplyShortChannelIdsEnd?;
7 /* DEFAULT_CONSTRUCTOR_START */
8 public init(chain_hash_arg: [UInt8], full_information_arg: Bool) {
10 self.cOpaqueStruct = ReplyShortChannelIdsEnd_new(Bindings.new_LDKThirtyTwoBytes(array: chain_hash_arg), full_information_arg)
12 /* DEFAULT_CONSTRUCTOR_END */
14 public init(pointer: LDKReplyShortChannelIdsEnd){
15 self.cOpaqueStruct = pointer
18 /* STRUCT_METHODS_START */
20 public func get_chain_hash() -> [UInt8] {
22 return Bindings.tuple32_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_ptrPointer: UnsafePointer<LDKReplyShortChannelIdsEnd>) in
23 ReplyShortChannelIdsEnd_get_chain_hash(this_ptrPointer)
27 public func set_chain_hash(val: [UInt8]) -> Void {
29 let this_ptrPointer = UnsafeMutablePointer<LDKReplyShortChannelIdsEnd>.allocate(capacity: 1)
30 this_ptrPointer.initialize(to: self.cOpaqueStruct!)
32 return ReplyShortChannelIdsEnd_set_chain_hash(this_ptrPointer, Bindings.new_LDKThirtyTwoBytes(array: val));
35 public func get_full_information() -> Bool {
37 return withUnsafePointer(to: self.cOpaqueStruct!) { (this_ptrPointer: UnsafePointer<LDKReplyShortChannelIdsEnd>) in
38 ReplyShortChannelIdsEnd_get_full_information(this_ptrPointer)
42 public func set_full_information(val: Bool) -> Void {
44 let this_ptrPointer = UnsafeMutablePointer<LDKReplyShortChannelIdsEnd>.allocate(capacity: 1)
45 this_ptrPointer.initialize(to: self.cOpaqueStruct!)
47 return ReplyShortChannelIdsEnd_set_full_information(this_ptrPointer, val);
50 public func clone(orig: ReplyShortChannelIdsEnd) -> ReplyShortChannelIdsEnd {
52 return withUnsafePointer(to: orig.cOpaqueStruct!) { (origPointer: UnsafePointer<LDKReplyShortChannelIdsEnd>) in
53 ReplyShortChannelIdsEnd(pointer: ReplyShortChannelIdsEnd_clone(origPointer))
57 public func read(ser: [UInt8]) -> Result_ReplyShortChannelIdsEndDecodeErrorZ {
59 return Result_ReplyShortChannelIdsEndDecodeErrorZ(pointer: ReplyShortChannelIdsEnd_read(Bindings.new_LDKu8slice(array: ser)));
62 public func write(obj: ReplyShortChannelIdsEnd) -> [UInt8] {
64 return Bindings.LDKCVec_u8Z_to_array(nativeType: withUnsafePointer(to: obj.cOpaqueStruct!) { (objPointer: UnsafePointer<LDKReplyShortChannelIdsEnd>) in
65 ReplyShortChannelIdsEnd_write(objPointer)
71 if self.cOpaqueStruct?.is_owned == false {
75 ReplyShortChannelIdsEnd_free(self.cOpaqueStruct!)
81 /* STRUCT_METHODS_END */