#pragma once #include "Runtime/Streams/CInputStream.hpp" #include "Runtime/rstl.hpp" #include namespace metaforce { template void read_reserved_vector(rstl::reserved_vector& v, CInputStream& in) { u32 count = in.ReadUint32(); v.resize(count); for (u32 i = 0; i < count; ++i) { v[i] = in.Get(); } } template void read_vector(std::vector& v, CInputStream& in) { u32 count = in.ReadUint32(); v.reserve(count); for (u32 i = 0; i < count; ++i) { v.emplace_back(in.Get()); } } } // namespace metaforce