mirror of https://github.com/AxioDL/metaforce.git
14 lines
353 B
C++
14 lines
353 B
C++
|
#pragma once
|
||
|
|
||
|
#include "Runtime/rstl.hpp"
|
||
|
#include "Runtime/Streams/CInputStream.hpp"
|
||
|
namespace metaforce {
|
||
|
template <class T, size_t N>
|
||
|
void read_reserved_vector(rstl::reserved_vector<T, N>& v, CInputStream& in) {
|
||
|
u32 count = in.ReadLong();
|
||
|
v.resize(count);
|
||
|
for (u32 i = 0; i < count; ++i) {
|
||
|
v[i] = in.Get<T>();
|
||
|
}
|
||
|
}
|
||
|
} // namespace metaforce
|