mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
fahhh
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <sstream>
|
||||
|
||||
namespace RBX {
|
||||
|
||||
struct Base64BinaryOutputStream {
|
||||
private:
|
||||
static const char* kTranslateToBase64;
|
||||
|
||||
std::ostringstream result;
|
||||
unsigned char buffer;
|
||||
size_t bitsUsed;
|
||||
|
||||
public:
|
||||
|
||||
Base64BinaryOutputStream();
|
||||
|
||||
// NOT A REAL IMPLEMENTATION -- ONLY PRESENT TO SATISFY TEMPLATES
|
||||
size_t GetNumberOfBytesUsed() const;
|
||||
|
||||
// numBitsToAdd must be >= 0 and <= 8. Only the character immediately
|
||||
// pointed to by data will be read
|
||||
void WriteBits(const unsigned char* data, size_t numBitsToAdd);
|
||||
|
||||
// make sure to call this method exactly once: when you will no longer
|
||||
// call WriteBits again on this object.
|
||||
void done(std::string* out);
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user