mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
22 lines
404 B
C++
22 lines
404 B
C++
#pragma once
|
|
|
|
#include "boost/cstdint.hpp"
|
|
|
|
namespace RBX {
|
|
|
|
struct Base64BinaryInputStream {
|
|
private:
|
|
const char* source;
|
|
boost::uint16_t buffer;
|
|
size_t readableBitsInBuffer;
|
|
static unsigned char decode(unsigned char charFromString);
|
|
|
|
public:
|
|
Base64BinaryInputStream(const char* source);
|
|
|
|
// numBitsToRead needs to be >= 1 and <= 8.
|
|
void ReadBits(unsigned char* out, size_t numBitsToRead);
|
|
};
|
|
|
|
}
|