struct Gdbmish::Read::AsciiMetaData

Overview

Header and footer meta data from a GDBM Ascii dump file.

Defined in:

gdbmish/read.cr

Constructors

Class Method Summary

Instance Method Summary

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) #

[View source]

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.


[View source]

Instance Method Detail

def count : UInt64 | Nil #

[View source]
def file : String | Nil #

[View source]
def gid : String | Nil #

[View source]
def group : String | Nil #

[View source]
def mode : Int32 | Nil #

octal unix file mode


[View source]
def uid : String | Nil #

[View source]
def user : String | Nil #

[View source]
def version : String | Nil #

[View source]