

CodecConstants
- Namespace
- Rowles.LeanLucene.Codecs
- Assembly
- Rowles.LeanLucene.dll
Shared magic number and format version constants for all codec file types. Every codec file starts with [int32: Magic][byte: Version].
internal static class CodecConstants
CodecConstants
Fields
HeaderSize
Header size in bytes: 4 (magic) + 1 (version).
Magic
Magic number written as the first 4 bytes of every LeanLucene codec file.
Methods
ReadHeaderVersion(IndexInput, byte, string)
Validates the magic number and returns the version byte from an IndexInput.
ValidateHeader(IndexInput, byte, string)
Validates the magic number and version from an IndexInput. Throws on mismatch.
ValidateHeader(BinaryReader, byte, string)
Validates the magic number and version from a BinaryReader. Throws on mismatch.
WriteHeader(IndexOutput, byte)
Writes the standard codec header to an IndexOutput.
WriteHeader(BinaryWriter, byte)
Writes the standard codec header to a BinaryWriter.