mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Make many more utility classes/headers public. (#76)
Moving these headers from src to include enables other libraries to use the functionality provided. * tcpsockets * atomic_static * raw_istream * timestamp * SafeThread * Base64 * LEB128 * ConcurrentQueue The classes have been moved into the wpi namespace as they're generic.
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
#include <cstddef>
|
||||
|
||||
#include "nt_Value.h"
|
||||
#include "leb128.h"
|
||||
#include "support/leb128.h"
|
||||
#include "support/raw_istream.h"
|
||||
//#include "Log.h"
|
||||
#include "raw_istream.h"
|
||||
|
||||
namespace nt {
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace nt {
|
||||
*/
|
||||
class WireDecoder {
|
||||
public:
|
||||
explicit WireDecoder(raw_istream& is, unsigned int proto_rev);
|
||||
explicit WireDecoder(wpi::raw_istream& is, unsigned int proto_rev);
|
||||
~WireDecoder();
|
||||
|
||||
void set_proto_rev(unsigned int proto_rev) { m_proto_rev = proto_rev; }
|
||||
@@ -113,7 +113,7 @@ class WireDecoder {
|
||||
|
||||
/* Reads an ULEB128-encoded unsigned integer. */
|
||||
bool ReadUleb128(unsigned long* val) {
|
||||
return nt::ReadUleb128(m_is, val);
|
||||
return wpi::ReadUleb128(m_is, val);
|
||||
}
|
||||
|
||||
bool ReadType(NT_Type* type);
|
||||
@@ -135,7 +135,7 @@ class WireDecoder {
|
||||
void Realloc(std::size_t len);
|
||||
|
||||
/* input stream */
|
||||
raw_istream& m_is;
|
||||
wpi::raw_istream& m_is;
|
||||
|
||||
/* temporary buffer */
|
||||
char* m_buf;
|
||||
|
||||
Reference in New Issue
Block a user