Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ByteSliceWriter.h
Go to the documentation of this file.
1 
2 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef BYTESLICEWRITER_H
8 #define BYTESLICEWRITER_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
16 class ByteSliceWriter : public LuceneObject {
17 public:
19  virtual ~ByteSliceWriter();
20 
22 
23 protected:
24  ByteArray slice;
25  int32_t upto;
27 
28 public:
29  int32_t offset0;
30 
31 public:
33  void init(int32_t address);
34 
36  void writeByte(uint8_t b);
37 
38  void writeBytes(const uint8_t* b, int32_t offset, int32_t length);
39  int32_t getAddress();
40  void writeVInt(int32_t i);
41 };
42 
43 }
44 
45 #endif

clucene.sourceforge.net