header guards for StreamBufferAdapter

This commit is contained in:
Nick Fisher
2022-08-15 19:02:52 +10:00
parent a96b9ad1fa
commit 7e424a8bed

View File

@@ -1,3 +1,5 @@
#pragma once
#include <streambuf>
#include <functional>
#include <cassert>
@@ -5,6 +7,8 @@
namespace polyvox {
using namespace std;
//
// 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.
@@ -24,7 +28,7 @@ namespace polyvox {
int_type pbackfail(int_type ch) override;
streampos seekoff(streamoff off, ios_base::seekdir way, ios_base::openmode which) override;
streampos seekpos(streampos sp, ios_base::openmode which) override;
std::streamsize showmanyc() override;
streamsize showmanyc() override;
};