ColumnBlob() private method

private ColumnBlob ( IntPtr stmt, int index ) : IntPtr
stmt IntPtr
index int
return IntPtr
Exemplo n.º 1
0
        public byte[] ColumnBlob(IDbStatement stmt, int index)
        {
            var dbStatement = (DbStatement)stmt;
            int length      = ColumnBytes(stmt, index);

            byte[] result = new byte[length];
            if (length > 0)
            {
                Marshal.Copy(SQLite3.ColumnBlob(dbStatement.InternalStmt, index), result, 0, length);
            }
            return(result);
        }