public bool binbuf_return_still_usable() { bool r = binbuf_return_binbuf.GetBytes().SequenceEqual(BaseSequence.Values()); r = r && binbuf_return_binbuf.Own; binbuf_return_binbuf.Dispose(); binbuf_return_binbuf = null; return(r); }
override public bool EinaRwSliceOut(ref Eina.RwSlice slice) { rw_slice_out_flag = true; rw_slice_out_seq = (byte[])BaseSequence.Values(); rw_slice_out_pinned = GCHandle.Alloc(rw_slice_out_seq, GCHandleType.Pinned); IntPtr ptr = rw_slice_out_pinned.AddrOfPinnedObject(); slice.Mem = ptr; slice.Len = (UIntPtr)rw_slice_out_seq.Length; return(true); }
override public bool EinaBinbufInOwn(Eina.Binbuf binbuf) { binbuf_in_own_flag = true; bool r = binbuf.GetBytes().SequenceEqual(BaseSequence.Values()); r = r && binbuf.Own; binbuf.Insert(42, 0); binbuf.Insert(43, 0); binbuf.Append(33); binbuf_in_own_binbuf = binbuf; return(r); }
override public bool EinaRwSliceIn(Eina.RwSlice slice) { rw_slice_in_flag = true; return(slice.GetBytes().SequenceEqual(BaseSequence.Values())); }