コード例 #1
0
            public codec_ctx Copy()
            {
                codec_ctx c = new codec_ctx();

                c.mode_rekey = mode_rekey;
                c.buffer     = sqlite3MemMalloc(buffer.Length);
                c.pBt        = pBt;
                if (read_ctx != null)
                {
                    c.read_ctx = read_ctx.Copy();
                }
                if (write_ctx != null)
                {
                    c.write_ctx = write_ctx.Copy();
                }
                return(c);
            }
コード例 #2
0
ファイル: codec_ctx.cs プロジェクト: smorey2/feaserver
        public codec_ctx Copy()
        {
            codec_ctx c = new codec_ctx();

            c.mode_rekey = mode_rekey;
            c.buffer     = new byte[buffer.Length];
            //c.pBt = pBt;
            if (read_ctx != null)
            {
                c.read_ctx = read_ctx.Copy();
            }
            if (write_ctx != null)
            {
                c.write_ctx = write_ctx.Copy();
            }
            return(c);
        }