public static int bbufferExtendArray(this L_ByteBuffer bb, int nbytes) { if (null == bb) { throw new ArgumentNullException("bb cannot be null."); } return(Native.DllImports.bbufferExtendArray((HandleRef)bb, nbytes)); }
public static int bbufferReadStream(this L_ByteBuffer bb, IntPtr fp, int nbytes) { if (null == bb || IntPtr.Zero == fp) { throw new ArgumentNullException("bb, fp cannot be null."); } return(Native.DllImports.bbufferReadStream((HandleRef)bb, fp, nbytes)); }
public static void bbufferDestroy(this L_ByteBuffer pbb) { if (null == pbb) { throw new ArgumentNullException("pbb cannot be null."); } var pointer = (IntPtr)pbb; Native.DllImports.bbufferDestroy(ref pointer); }
public static int bbufferWriteStream(this L_ByteBuffer bb, IntPtr fp, IntPtr nbytes, IntPtr pnout) { if (null == bb || IntPtr.Zero == fp || IntPtr.Zero == nbytes || IntPtr.Zero == pnout) { throw new ArgumentNullException("bb, fp, nbytes, pnout cannot be null."); } return(Native.DllImports.bbufferWriteStream((HandleRef)bb, fp, nbytes, pnout)); }
public static IntPtr bbufferDestroyAndSaveData(this L_ByteBuffer pbb, IntPtr pnbytes) { if (null == pbb || IntPtr.Zero == pnbytes) { throw new ArgumentNullException("pbb, pnbytes cannot be null."); } var pointer = (IntPtr)pbb; return(Native.DllImports.bbufferDestroyAndSaveData(ref pointer, pnbytes)); }