- /**
- * Serialize the OfferFeatures object into a byte array which can be read by OfferFeatures_read
- */
- public write(): Uint8Array {
- const ret: number = bindings.OfferFeatures_write(this.ptr);
- const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
- return ret_conv;
- }
-
- /**
- * Read a OfferFeatures from a byte array, created by OfferFeatures_write
- */
- public static constructor_read(ser: Uint8Array): Result_OfferFeaturesDecodeErrorZ {
- const ret: bigint = bindings.OfferFeatures_read(bindings.encodeUint8Array(ser));
- const ret_hu_conv: Result_OfferFeaturesDecodeErrorZ = Result_OfferFeaturesDecodeErrorZ.constr_from_ptr(ret);
- return ret_hu_conv;
- }
-