@@ -62,7+64,7 @@ public class ReplyShortChannelIdsEnd : CommonBase {
* Constructs a new ReplyShortChannelIdsEnd given each field
*/
public static ReplyShortChannelIdsEnd of(byte[] chain_hash_arg, bool full_information_arg) {
* Constructs a new ReplyShortChannelIdsEnd given each field
*/
public static ReplyShortChannelIdsEnd of(byte[] chain_hash_arg, bool full_information_arg) {
- long ret = bindings.ReplyShortChannelIdsEnd_new(InternalUtils.check_arr_len(chain_hash_arg, 32), full_information_arg);
+ long ret = bindings.ReplyShortChannelIdsEnd_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), full_information_arg);
GC.KeepAlive(chain_hash_arg);
GC.KeepAlive(full_information_arg);
if (ret >= 0 && ret <= 4096) { return null; }
GC.KeepAlive(chain_hash_arg);
GC.KeepAlive(full_information_arg);
if (ret >= 0 && ret <= 4096) { return null; }
@@ -110,16+112,18 @@ public class ReplyShortChannelIdsEnd : CommonBase {
* Serialize the ReplyShortChannelIdsEnd object into a byte array which can be read by ReplyShortChannelIdsEnd_read
*/
public byte[] write() {
* Serialize the ReplyShortChannelIdsEnd object into a byte array which can be read by ReplyShortChannelIdsEnd_read
*/
public byte[] write() {
- byte[] ret = bindings.ReplyShortChannelIdsEnd_write(this.ptr);
+ long ret = bindings.ReplyShortChannelIdsEnd_write(this.ptr);