header guards for StreamBufferAdapter

This commit is contained in:
Nick Fisher
2022-08-15 19:02:52 +10:00
parent c6e96b0007
commit 5c70d42f45

View File

@@ -1,3 +1,5 @@
#pragma once
#include <streambuf> #include <streambuf>
#include <functional> #include <functional>
#include <cassert> #include <cassert>
@@ -5,6 +7,8 @@
namespace polyvox { namespace polyvox {
using namespace std;
// //
// A generic adapter to expose any contiguous section of memory as a std::streambuf. // A generic adapter to expose any contiguous section of memory as a std::streambuf.
// Mostly for Android/iOS assets which may not be able to be directly loaded as streams. // Mostly for Android/iOS assets which may not be able to be directly loaded as streams.
@@ -24,7 +28,7 @@ namespace polyvox {
int_type pbackfail(int_type ch) override; int_type pbackfail(int_type ch) override;
streampos seekoff(streamoff off, ios_base::seekdir way, ios_base::openmode which) override; streampos seekoff(streamoff off, ios_base::seekdir way, ios_base::openmode which) override;
streampos seekpos(streampos sp, ios_base::openmode which) override; streampos seekpos(streampos sp, ios_base::openmode which) override;
std::streamsize showmanyc() override; streamsize showmanyc() override;
}; };