Method WriteFooter
WriteFooter(IndexOutput)
Writes a codec footer, which records both a checksum algorithm ID and a checksum. This footer can be parsed and validated with CheckFooter(ChecksumIndexInput).
CodecFooter --> Magic,AlgorithmID,Checksum
- Magic --> Uint32 (WriteInt32(Int32)). this identifies the start of the footer. It is always FOOTER_MAGIC.
- AlgorithmID --> Uint32 (WriteInt32(Int32)). this indicates the checksum algorithm used. Currently this is always 0, for zlib-crc32.
- Checksum --> Uint32 (WriteInt64(Int64)). The actual checksum value for all previous bytes in the stream, including the bytes from Magic and AlgorithmID.
Declaration
public static void WriteFooter(IndexOutput out)
Parameters
Type | Name | Description |
---|---|---|
IndexOutput | out | Output stream |