struct SleepParser::Header
- SleepParser::Header
- Struct
- Value
- Object
Defined in:
sleep_parser/header.crConstant Summary
-
ALGORITHM_MAX_LENGTH =
HEADER_LENGTH - 8
-
HEADER_LENGTH =
32
-
INDICATOR =
Slice[5_u8, 2_u8, 87_u8]
Constructors
Class Method Summary
Instance Method Summary
-
#entry_size : UInt16
Size of each piece of data in the file body.
-
#file_type : FileType
Type of file.
-
#hash_type : HashType
Algorithm used for hashing the content.
-
#protocol_version : ProtocolVersion
Version of the SLEEP protocol.
- #to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::NetworkEndian)
- #valid? : Bool
Constructor Detail
def self.new(file_type : SleepParser::FileType, entry_size : UInt16, hash_type : SleepParser::HashType, protocol_version : SleepParser::ProtocolVersion = ProtocolVersion::V0)
#