X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FAPIError.cs;h=bf71371bc8fbe5a769692666aadc1e22e5893190;hb=c6777737ea14e7814b0fa7d6fe16536f31d4a82b;hp=b32701c6ff1e4fb193509ded3e153a110d795fb9;hpb=ee72c84d4bf9e2404e02fe20155efb502ceaee1b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/APIError.cs b/c_sharp/src/org/ldk/structs/APIError.cs index b32701c6..bf71371b 100644 --- a/c_sharp/src/org/ldk/structs/APIError.cs +++ b/c_sharp/src/org/ldk/structs/APIError.cs @@ -198,5 +198,14 @@ public class APIError : CommonBase { if (!(o is APIError)) return false; return this.eq((APIError)o); } + /** + * Serialize the APIError object into a byte array which can be read by APIError_read + */ + public byte[] write() { + byte[] ret = bindings.APIError_write(this.ptr); + GC.KeepAlive(this); + return ret; + } + } } } }