diff --git a/src/UESaveFile/BinaryWriter.cpp b/src/UESaveFile/BinaryWriter.cpp index 9cb991e..64e6b24 100644 --- a/src/UESaveFile/BinaryWriter.cpp +++ b/src/UESaveFile/BinaryWriter.cpp @@ -46,6 +46,10 @@ auto BinaryWriter::position() -> Long { return _ftelli64(_file); } +auto BinaryWriter::array() const -> Containers::ArrayView { + return _data; +} + auto BinaryWriter::arrayPosition() const -> UnsignedLong { return _index; } diff --git a/src/UESaveFile/BinaryWriter.h b/src/UESaveFile/BinaryWriter.h index 1d12acd..ac73f1a 100644 --- a/src/UESaveFile/BinaryWriter.h +++ b/src/UESaveFile/BinaryWriter.h @@ -45,6 +45,7 @@ class BinaryWriter { auto position() -> Long; + auto array() const -> Containers::ArrayView; auto arrayPosition() const -> UnsignedLong; auto flushToFile() -> bool;