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


Loading...
Searching...
No Matches
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
12namespace Lucene {
13
16class LPPAPI ByteSliceWriter : public LuceneObject {
17public:
20
22
23protected:
24 ByteArray slice;
25 int32_t upto;
27
28public:
29 int32_t offset0;
30
31public:
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
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Class to write byte streams into slices of shared byte[]. This is used by DocumentsWriter to hold the...
Definition ByteSliceWriter.h:16
void writeVInt(int32_t i)
ByteArray slice
Definition ByteSliceWriter.h:24
void init(int32_t address)
Set up the writer to write at address.
ByteSliceWriter(const ByteBlockPoolPtr &pool)
void writeBytes(const uint8_t *b, int32_t offset, int32_t length)
void writeByte(uint8_t b)
Write byte into byte slice stream.
int32_t offset0
Definition ByteSliceWriter.h:29
ByteBlockPoolPtr pool
Definition ByteSliceWriter.h:26
int32_t upto
Definition ByteSliceWriter.h:25
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< ByteBlockPool > ByteBlockPoolPtr
Definition LuceneTypes.h:89

clucene.sourceforge.net