mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 23:02:34 +08:00
added and passed Header and DirectoryEntry tests
This commit is contained in:
@ -15,20 +15,6 @@ T_LONG64 StreamRW::Seek(T_LONG64 offset)
|
||||
return stream->tellp();
|
||||
}
|
||||
|
||||
template<size_t N>
|
||||
std::array<BYTE, N> StreamRW::ReadArray()
|
||||
{
|
||||
std::array<BYTE,N> arr(0);
|
||||
stream->read(reinterpret_cast<char*>(arr.data()), N);
|
||||
return arr;
|
||||
}
|
||||
std::vector<BYTE> StreamRW::ReadArray(int lenght)
|
||||
{
|
||||
std::vector<BYTE> arr(lenght,0);
|
||||
stream->read(reinterpret_cast<char*>(arr.data()), lenght);
|
||||
return arr;
|
||||
}
|
||||
|
||||
void StreamRW::ReadArray(char *data, int lenght)
|
||||
{
|
||||
stream->read(data, lenght);
|
||||
|
||||
Reference in New Issue
Block a user