aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/port/port_example.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-06-09 19:24:30 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-06-09 19:24:30 -0700
commite4030ab4f47065c362901109c74ca8e791c2de0a (patch)
treec1678f5a72d3888ad5e4621073bbe4fa698883b5 /src/leveldb/port/port_example.h
parent1b708f2cf3e6e6a17c5b6dbf2909a2ed2e35755a (diff)
parentcf44e4ca7762742c6c3154447b40869ec9d041db (diff)
downloadbitcoin-e4030ab4f47065c362901109c74ca8e791c2de0a.tar.xz
Update to LevelDB 1.20
Diffstat (limited to 'src/leveldb/port/port_example.h')
-rw-r--r--src/leveldb/port/port_example.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leveldb/port/port_example.h b/src/leveldb/port/port_example.h
index ab9e489b32..97bd669a5e 100644
--- a/src/leveldb/port/port_example.h
+++ b/src/leveldb/port/port_example.h
@@ -129,6 +129,12 @@ extern bool Snappy_Uncompress(const char* input_data, size_t input_length,
// The concatenation of all "data[0,n-1]" fragments is the heap profile.
extern bool GetHeapProfile(void (*func)(void*, const char*, int), void* arg);
+// Extend the CRC to include the first n bytes of buf.
+//
+// Returns zero if the CRC cannot be extended using acceleration, else returns
+// the newly extended CRC value (which may also be zero).
+uint32_t AcceleratedCRC32C(uint32_t crc, const char* buf, size_t size);
+
} // namespace port
} // namespace leveldb