Start COBBTree

Former-commit-id: e5668e767e
This commit is contained in:
2023-06-23 17:15:06 -07:00
parent 9a1022d016
commit cf8cb69b61
4 changed files with 67 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ public:
// CIEKeyframeEmitter / rstl::vector(CInputStream&)
// why?
int ReadInt32() { return static_cast< uint >(Get(TType< int >())); }
u16 ReadUint16() { return Get<u16>(); }
uint GetBlockOffset() const { return x4_blockOffset; }
@@ -74,6 +75,11 @@ inline char cinput_stream_helper(const TType< char >& type, CInputStream& in) {
return in.ReadChar();
}
template <>
inline unsigned char cinput_stream_helper(const TType< unsigned char >& type, CInputStream& in) {
return in.ReadChar();
}
template <>
inline int cinput_stream_helper(const TType< int >& type, CInputStream& in) {
return in.ReadLong();