+ /**
+ * Serialize the APIError object into a byte array which can be read by APIError_read
+ */
+ public byte[] write() {
+ long ret = bindings.APIError_write(this.ptr);
+ GC.KeepAlive(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
+ return ret_conv;
+ }
+