struct Bakelite::FileMetadata

Overview

Metadata describing an embedded or stored file.

Defined in:

bakelite/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String, volume_name : Symbol | String, size : Int64, compressed_size : Int64, mode : StorageMode, compression : CompressionType, mime_type : String, crc32 : UInt32, chunk_size : UInt32 = 65536_u32, chunks : Array(Chunk) = [] of Chunk, sha256 : String | Nil = nil) #

[View source]

Instance Method Detail

def chunk_size : UInt32 #

[View source]
def chunks : Array(Chunk) #

[View source]
def compressed_size : Int64 #

[View source]
def compression : CompressionType #

[View source]
def crc32 : UInt32 #

[View source]
def mime_type : String #

[View source]
def mode : StorageMode #

[View source]
def path : String #

[View source]
def sha256 : String | Nil #

[View source]
def size : Int64 #

[View source]
def volume_name : String #

[View source]