module

Pylon::Wire::Chunks

Constants

CHUNK_BYTES = 64 * 1024

Instance methods

measure_entry(entry : Core::Entry | Nil) : UInt32
Source
read_all(reader : Reader, codec : Compress::Codec, scratch : Bytes, limit : Int32 = Wire::MAX_CONTENT_BYTES) : Bytes | Nil
Source
read_changes(reader : Reader) : Core::Changes
Source
read_contents(reader : Reader) : Contents
Source
read_entry(reader : Reader) : Core::Entry | Nil
Source
read_outcomes(reader : Reader) : Array(Write::Outcome)
Source
read_relocations(reader : Reader) : Array(Core::Relocation)
Source
scratch
Source
write_all(io : IO, content : Bytes, codec : Compress::Codec, scratch : Bytes) : Nil
Source
write_changes(io : IO, changes : Core::Changes) : Nil
Source
write_chunk(io : IO, source : Bytes, codec : Compress::Codec, scratch : Bytes) : Nil
Source
write_contents(io : IO, contents : Contents) : Nil
Source
write_end(io : IO, valid : Bool = true) : Nil
Source
write_entry(io : IO, entry : Core::Entry | Nil) : Nil
Source
write_outcomes(io : IO, outcomes : Array(Write::Outcome)) : Nil
Source
write_relocations(io : IO, relocations : Array(Core::Relocation)) : Nil
Source