Module: RuneRb::Cache::Constants

Included in:
RuneRb::Cache
Defined in:
lib/rune/cache/constants.rb

Overview

Since:

  • 0.1.0

Constant Summary collapse

ARCHIVE_COUNT =

The number of archives in the cache.

Returns:

  • (Integer)

Since:

  • 0.1.0

0x9
INDEX_SIZE =

The size of a single index

Returns:

  • (Integer)

Since:

  • 0.1.0

0x6
HEADER_SIZE =

The size of a single data header

Returns:

  • (Integer)

Since:

  • 0.1.0

0x8
CHUNK_SIZE =

The size of a chunk of data

Returns:

  • (Integer)

Since:

  • 0.1.0

512
BLOCK_SIZE =

The size of a single data block

Returns:

  • (Integer)

Since:

  • 0.1.0

HEADER_SIZE + CHUNK_SIZE