class DFL::Head
- DFL::Head
- Reference
- Object
Overview
A chunk of data that holds info about data in the DFL
Included Modules
Defined in:
D_File/dfl/head.crwrite.cr
Constructors
-
.read(io : IO) : Head
Reads in a head given the io
Class Method Summary
-
.read(filename : String | Path)
Reads in a head given the filepath
head = DFL::Head.read("Path/To/MyHead.dpo")
Instance Method Summary
-
#data : DataTypes
The head's data
-
#data=(data : DataTypes)
The head's data
-
#name : String
The name
-
#name=(name : String)
The name
-
#name_length : UInt8
The length of the name
-
#name_length=(name_length : UInt8)
The length of the name
-
#type : HeadType
The type of the head
-
#type=(type : HeadType)
The type of the head
Instance methods inherited from module WritingMethods::DFL::Head
write(filename : String | Path)write(io : IO) write
Constructor Detail
Class Method Detail
def self.read(filename : String | Path)
#
Reads in a head given the filepath
head = DFL::Head.read("Path/To/MyHead.dpo")