OLD | NEW |
1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. | 1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. See the AUTHORS file for names of contributors. | 3 // found in the LICENSE file. See the AUTHORS file for names of contributors. |
4 // | 4 // |
5 // See port_example.h for documentation for the following types/functions. | 5 // See port_example.h for documentation for the following types/functions. |
6 | 6 |
7 #ifndef STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ | 7 #ifndef STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ |
8 #define STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ | 8 #define STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 std::string* output); | 108 std::string* output); |
109 bool Snappy_GetUncompressedLength(const char* input, size_t length, | 109 bool Snappy_GetUncompressedLength(const char* input, size_t length, |
110 size_t* result); | 110 size_t* result); |
111 bool Snappy_Uncompress(const char* input_data, size_t input_length, | 111 bool Snappy_Uncompress(const char* input_data, size_t input_length, |
112 char* output); | 112 char* output); |
113 | 113 |
114 inline bool GetHeapProfile(void (*func)(void*, const char*, int), void* arg) { | 114 inline bool GetHeapProfile(void (*func)(void*, const char*, int), void* arg) { |
115 return false; | 115 return false; |
116 } | 116 } |
117 | 117 |
118 } | 118 // Implemented in leveldb's src/port/port_posix_sse.cc. |
119 } | 119 uint32_t AcceleratedCRC32C(uint32_t crc, const char* buf, size_t size); |
| 120 |
| 121 } // namespace port |
| 122 } // namespace leveldb |
120 | 123 |
121 #endif // STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ | 124 #endif // STORAGE_LEVELDB_PORT_PORT_CHROMIUM_H_ |
OLD | NEW |