struct Gdbmish::Read::AsciiMetaData
- Gdbmish::Read::AsciiMetaData
- Struct
- Value
- Object
Overview
Header and footer meta data from a GDBM Ascii dump file.
Defined in:
gdbmish/read.crConstructors
Class Method Summary
-
.parse(io : IO, ignore_count = true)
Parse given IO for meta data.
Instance Method Summary
- #count : UInt64 | Nil
- #file : String | Nil
- #gid : String | Nil
- #group : String | Nil
-
#mode : Int32 | Nil
octal unix file mode
- #uid : String | Nil
- #user : String | Nil
- #version : String | Nil
Constructor Detail
def self.new(version : Nil | String = nil, file : Nil | String = nil, uid : Nil | String = nil, user : Nil | String = nil, gid : Nil | String = nil, group : Nil | String = nil, mode : Int32 | Nil = nil, count : UInt64 | Nil = nil)
#
Class Method Detail
def self.parse(io : IO, ignore_count = true)
#
Parse given IO for meta data.
Reads from +io+ until a "# End of header"
line is found (enhancing its pos
).
By default, ignores reading the #count
(indecating the amount of datasets in the file)
because it is written at the end of the file.