struct

Pylon::Wire::Checksums

Inherits Struct < Value < Object

Constants

MAXIMUM_BLOCK = 128 * 1024
MINIMUM_BLOCK = 512
STRONG_BYTES = 8

Constructors

new(base : Bytes, block_size : Int32, base_size : Int64, blocks : Array(Block))
Source
of(base : Bytes, content : Bytes) : Checksums
Source

Class methods

block_size_for(size : UInt64) : Int32
Source
plausible?(block_size : UInt32, base_size : UInt64) : Bool
Source
weak(window : Bytes) : UInt32
Source

Instance methods

base
Source
base_size
Source
block_size
Source
blocks
Source
full_block_count
Source
short_final_size
Source

Nested types