Skip to content

Commit

Permalink
define EbmlCrc32 as binary class with a length of 4
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Jan 13, 2024
1 parent 5103a85 commit 8ef7379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions ebml/EbmlCrc32.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@

namespace libebml {

DECLARE_EBML_BINARY(EbmlCrc32)
DECLARE_EBML_BINARY_LENGTH(EbmlCrc32, 4)
public:
bool ValidateSize() const override {return GetSize() == 4;}
filepos_t RenderData(IOCallback & output, bool bForceRender, ShouldWrite writeFilter = WriteSkipDefault) override;
filepos_t ReadData(IOCallback & input, ScopeMode ReadFully = SCOPE_ALL_DATA) override;
// filepos_t UpdateSize(ShouldWrite writeFilter = WriteSkipDefault);
Expand Down
1 change: 1 addition & 0 deletions ebml/EbmlElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ class DllApi x : public BaseClass { \
#define DECLARE_EBML_UINTEGER_DEF(x) DECLARE_xxx_UINTEGER_DEF(x,EBML_DLL_API)
#define DECLARE_EBML_STRING_DEF(x) DECLARE_xxx_STRING_DEF( x,EBML_DLL_API)
#define DECLARE_EBML_BINARY(x) DECLARE_xxx_BINARY( x,EBML_DLL_API)
#define DECLARE_EBML_BINARY_LENGTH(x,len) DECLARE_xxx_BINARY_LENGTH(x,len,EBML_DLL_API)

#define EBML_CONCRETE_CLASS(Type) \
public: \
Expand Down

0 comments on commit 8ef7379

Please sign in to comment.