#include
<sxcommon.h>
Public Member Functions |
|
ByteMap (string s="3210XY987654", int bc=2, int b=6) | |
Public Attributes |
|
string | map |
int | byteCount |
int | usableBitsPerByte |
sx360::ByteMap::ByteMap | ( | string | s = "3210XY987654" ,
|
|
int | bc = 2 , |
|||
int | b = 6 |
|||
) | [inline] |
Constructor that only needs to be overriden if a nonstandard 360
column binary file is in use.
string sx360::ByteMap::map |
string representing every possible punch for an sxRecord.
There MUST be an even number of punches in this string since it will be
divided evenly across the number of bytes specfied in the byteCount
variable.
Number of bytes that the map takes up. For instance, the
default has 12 punches, which takes up 2 bytes. 24 would take up
3 bytes, etc.
Number of usable bits per byte. Because of the original design
of the format, the 12 punches are distributed evenly across two bytes,
making 6 bits of each byte actually usable. There are two bits in
each byte that are wasted. So, it is possible to add 4 more
punches to the default punchmap and still use the same amount of disk
space.