diff options
| author | Steven Normore <snormore@gmail.com> | 2014-04-15 17:56:53 +0000 |
|---|---|---|
| committer | Steven Normore <snormore@gmail.com> | 2014-04-16 13:29:52 +0000 |
| commit | b178373351a2d9711c8614255843038c5bed5872 (patch) | |
| tree | 6b1664a3de0655a8a763083da4ed126c91a85983 /db.go | |
| parent | fix up the C bits to compile (diff) | |
| download | dedo-b178373351a2d9711c8614255843038c5bed5872.tar.gz dedo-b178373351a2d9711c8614255843038c5bed5872.tar.xz | |
build c/cursor and running tests
Diffstat (limited to '')
| -rw-r--r-- | db.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -578,6 +578,12 @@ func (db *DB) checkBucket(b *Bucket, reachable map[pgid]*page, errors *ErrorList }) } +// This is for internal access to the raw data bytes from the C cursor, use +// carefully, or not at all. +func (db *DB) RawData() ([]byte, int) { + return db.data, db.pageSize +} + // page retrieves a page reference from the mmap based on the current page size. func (db *DB) page(id pgid) *page { pos := id * pgid(db.pageSize) |
