Currently, three header fields in OggStreamReader, ident_hdr, comment_hdr and setup_hdr, are public fields. Although it is easy to access, these fields can be overwritten by the user of the parser and may lead to illegal state. These should be a private field and accessed through getter functions instead.
Currently, three header fields in
OggStreamReader
,ident_hdr
,comment_hdr
andsetup_hdr
, are public fields. Although it is easy to access, these fields can be overwritten by the user of the parser and may lead to illegal state. These should be a private field and accessed through getter functions instead.