Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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));
        }
Exemple #5
0
        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));
        }