public RopInput create_input(RopData buf, bool doCopy, int tag = 0) { int ret = (int)lib.rnp_input_from_memory(out RopHandle hnd, buf.getDataObj(), (uint)buf.getDataLen(), doCopy); RopInput inp = new RopInput(this, Util.PopHandle(lib, hnd, ret)); PutObj(inp, tag); return(inp); }
public long write(RopData data) { int ret = (int)lib.rnp_output_write(oid, data.getDataObj(), data.getDataLen(), out long wr); return(Util.PopLong(lib, wr, ret)); }
public string detect_key_format(RopData buf) { int ret = (int)lib.rnp_detect_key_format(buf.getDataObj(), buf.getDataLen(), out RopHandle hnd); return(Util.GetRopString(lib, ret, hnd)); }