Explorar el Código

Merge pull request #1202 from pkasting/main

[jumbo] Add begin()/end() to Slice.
main
Austin Sullivan hace 2 meses
cometido por GitHub
padre
commit
23e35d792b
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      include/leveldb/slice.h

+ 3
- 0
include/leveldb/slice.h Ver fichero

@ -51,6 +51,9 @@ class LEVELDB_EXPORT Slice {
// Return true iff the length of the referenced data is zero
bool empty() const { return size_ == 0; }
const char* begin() const { return data(); }
const char* end() const { return data() + size(); }
// Return the ith byte in the referenced data.
// REQUIRES: n < size()
char operator[](size_t n) const {

Cargando…
Cancelar
Guardar