aboutsummaryrefslogtreecommitdiffstats
path: root/src/pad_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pad_common.h')
-rw-r--r--src/pad_common.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/pad_common.h b/src/pad_common.h
index a2f836c..6aba19b 100644
--- a/src/pad_common.h
+++ b/src/pad_common.h
@@ -73,6 +73,12 @@ struct DATA_GROUP {
// --- PADPacketizer -----------------------------------------------------------------
class PADPacketizer {
private:
+ static const size_t SUBFIELD_LENS[];
+ static const size_t FPAD_LEN;
+ static const size_t SHORT_PAD;
+ static const size_t VARSIZE_PAD_MIN;
+ static const size_t VARSIZE_PAD_MAX;
+
const size_t xpad_size_max;
const bool short_xpad;
const size_t max_cis;
@@ -105,11 +111,6 @@ private:
void ResetPAD();
pad_t* FlushPAD();
public:
- static const size_t SUBFIELD_LENS[];
- static const size_t FPAD_LEN;
- static const size_t SHORT_PAD;
- static const size_t VARSIZE_PAD_MIN;
- static const size_t VARSIZE_PAD_MAX;
static const std::string ALLOWED_PADLEN;
PADPacketizer(size_t pad_size);
@@ -125,6 +126,7 @@ public:
void WriteAllPADs(int output_fd, int limit = -1);
static DATA_GROUP* CreateDataGroupLengthIndicator(size_t len);
+ static bool CheckPADLen(size_t len);
};
#endif /* PAD_COMMON_H_ */