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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ByteSliceWriter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 {
18 public:
19 ByteSliceWriter(ByteBlockPoolPtr pool);
20 virtual ~ByteSliceWriter();
21
22 LUCENE_CLASS(ByteSliceWriter);
23
24 protected:
25 ByteArray slice;
26 int32_t upto;
27 ByteBlockPoolPtr pool;
28
29 public:
30 int32_t offset0;
31
32 public:
34 void init(int32_t address);
35
37 void writeByte(uint8_t b);
38
39 void writeBytes(const uint8_t* b, int32_t offset, int32_t length);
40 int32_t getAddress();
41 void writeVInt(int32_t i);
42 };
43 }
44
45 #endif

clucene.sourceforge.net