| 1 | #include "Library/Yaml/ByamlContainerHeader.h" |
|---|---|
| 2 | |
| 3 | #include <byteswap.h> |
| 4 | |
| 5 | namespace al { |
| 6 | s32 ByamlContainerHeader::getType() const { |
| 7 | return mType; |
| 8 | } |
| 9 | |
| 10 | s32 ByamlContainerHeader::getCount(bool isRev) const { |
| 11 | if (isRev) |
| 12 | return bswap_32_ignore_last(mType); |
| 13 | |
| 14 | return (mType >> 8); |
| 15 | } |
| 16 | } // namespace al |
| 17 |