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
include
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
:
18
ByteSliceWriter
(
const
ByteBlockPoolPtr
&
pool
);
19
virtual
~ByteSliceWriter
();
20
21
LUCENE_CLASS
(
ByteSliceWriter
);
22
23
protected
:
24
ByteArray
slice
;
25
int32_t
upto
;
26
ByteBlockPoolPtr
pool
;
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