1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
7 import java.lang.ref.Reference;
8 import javax.annotation.Nullable;
10 public class BigEndianScalar extends CommonBase {
11 /** The bytes of the scalar value, in big endian */
12 public final byte[] scalar_bytes;
14 BigEndianScalar(java.lang.Object _dummy, long ptr) {
16 this.scalar_bytes = bindings.BigEndianScalar_get_bytes(ptr);
18 public BigEndianScalar(byte[] scalar_bytes) {
19 super(bindings.BigEndianScalar_new(scalar_bytes));
20 this.scalar_bytes = bindings.BigEndianScalar_get_bytes(ptr);
23 @Override @SuppressWarnings("deprecation")
24 protected void finalize() throws Throwable {
26 if (ptr != 0) { bindings.BigEndianScalar_free(ptr); }