java.lang.Object
dev.hloth.zgztransport.Dump.Builder
- Enclosing class:
Dump
Fills the blocks of a dump one at a time, leaving the untouched ones zeroed.
-
Method Details
-
block
Writes a structure into a block.- Parameters:
index- the block numbercontent- the structure, which has to encode to a whole block- Returns:
- this builder
- Throws:
CardFormatException- if the block is outside the dump or the structure is not sixteen bytes long
-
block
Writes raw bytes into a block.- Parameters:
index- the block numbercontent- the sixteen bytes- Returns:
- this builder
- Throws:
CardFormatException- if the block is outside the dump or the bytes are not sixteen long
-
build
Builds the dump.- Returns:
- the dump
-