wavelength 1.0.0
Loading...
Searching...
No Matches
bankheader.h
Go to the documentation of this file.
1#pragma once
2
9class BankHeader {
10public:
18
25 void Init();
26
37 int Unpack(const unsigned char *data);
38
47 int Pack(unsigned char *data) const;
48
56 int PackedSize() const;
57
58 unsigned short mId;
59 unsigned char mVolume;
60 unsigned short mNumPrograms;
61};
BankHeader()
Construct a header with the defaults Init() sets.
void Init()
Reset every field to its default.
unsigned short mId
Definition bankheader.h:58
unsigned char mVolume
Definition bankheader.h:59
int PackedSize() const
Report the size of a serialised record of the current version.
int Unpack(const unsigned char *data)
Read the header from a serialised record.
int Pack(unsigned char *data) const
Write the header as a serialised record of the current version.
unsigned short mNumPrograms
Definition bankheader.h:60