class Zip64::Serializer

Defined in:

zip64/serializer.cr

Constant Summary

MADE_BY_SIGNATURE = Bytes[52, 3]

A combination of two bytes - version_made_by as low byte and the OS type as high byte version_made_by = 52 os_type = 3 # UNIX [version_made_by, os_type].pack('CC')

VERSION_NEEDED_TO_EXTRACT = 20
VERSION_NEEDED_TO_EXTRACT_ZIP64 = 45

Instance Method Summary

Instance Method Detail

def dir_external_attrs #

[View source]
def file_external_attrs #

[View source]
def write_central_directory_file_header(io : IO, filename : String, compressed_size : ZipFilesize, uncompressed_size : ZipFilesize, crc32 : ZipCRC32, gp_flags : ZipGpFlags, mtime : Time, storage_mode : ZipStorageMode, local_file_header_location : ZipLocation, additional_extra_fields : Bytes = Bytes.empty, comment : String = "") #

[View source]
def write_data_descriptor(io : IO, compressed_size : ZipFilesize, uncompressed_size : ZipFilesize, crc32 : ZipCRC32) #

[View source]
def write_end_of_central_directory(io : IO, start_of_central_directory_location : ZipLocation, central_directory_size : ZipLocation, num_files_in_archive : ZipLocation, comment : String = "") #

[View source]
def write_local_file_header(io : IO, filename : String, compressed_size : ZipFilesize, uncompressed_size : ZipFilesize, crc32 : ZipCRC32, gp_flags : ZipGpFlags, mtime : Time, storage_mode : ZipStorageMode, additional_extra_fields : Bytes = Bytes.empty) #

[View source]