class StringStore

Defined in:

string_store.cr
string_store/version.cr

Constant Summary

VERSION = "0.1.0"

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class StringPool

[](hash : UInt64) : String
[](str : String) : UInt64
[]
, []?(str : String) : UInt64 | Nil
[]?(hash : UInt64) : String | Nil
[]?
, each(&) each, get_id(str : Pointer(UInt8), len) : UInt64
get_id(str : String)
get_id(str : IO::Memory)
get_id
, hash(str : String) : UInt64
hash(bytes : Bytes) : UInt64
hash

Constructor Detail

def self.from_disk(path : String, format = IO::ByteFormat::LittleEndian) : self #

[View source]
def self.load(path : String, format = IO::ByteFormat::LittleEndian) : self #

[View source]

Class Method Detail

def self.from_io(io : IO, format : IO::ByteFormat) #

[View source]

Instance Method Detail

def save(path : String, format = IO::ByteFormat::LittleEndian) : Void #

[View source]
def to_disk(path : String, format = IO::ByteFormat::LittleEndian) : Void #

[View source]
def to_io(io : IO, format : IO::ByteFormat) #

[View source]