class StringStore
- StringStore
- StringPool
- Reference
- Object
Defined in:
string_store.crstring_store/version.cr
Constant Summary
-
VERSION =
"0.1.0"
Constructors
- .from_disk(path : String, format = IO::ByteFormat::LittleEndian) : self
- .load(path : String, format = IO::ByteFormat::LittleEndian) : self
Class Method Summary
Instance Method Summary
- #save(path : String, format = IO::ByteFormat::LittleEndian) : Void
- #to_disk(path : String, format = IO::ByteFormat::LittleEndian) : Void
- #to_io(io : IO, format : IO::ByteFormat)
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