44 return instance->vtable->instance->GetSize(fileSize);
48 return instance->vtable->instance->Seek(offset, seekOrigin);
55 void InitInternalVtable() {
57 .ReadFn = &ReadWrapper,
58 .WriteFn = &WriteWrapper,
59 .GetSizeFn = &GetSizeWrapper,
60 .SeekFn = &SeekWrapper};
61 mInstance.
vtable = &mVTable;
65 details::IStreamInternalVTable mVTable{};
Result value type used by nn libraries.
IStream & operator=(const IStream &other)
IStream & operator=(IStream &&src) noexcept
~IStream() override=default
virtual nn::Result Read(uint32_t *bytesRead, void *buffer, uint32_t readSize)=0
virtual nn::Result Write(uint32_t *bytesWritten, void *buffer, uint32_t writeSize)=0
IStreamInternalVTable * vtable
struct nn::sl::details::IStreamInternal IStreamInternal