[ox/std] Add Buffer as Vector<char> alias
This commit is contained in:
parent
504d248ce3
commit
ceebc05ee9
2
deps/ox/src/ox/std/CMakeLists.txt
vendored
2
deps/ox/src/ox/std/CMakeLists.txt
vendored
@ -19,6 +19,7 @@ target_compile_definitions(
|
||||
add_library(
|
||||
OxStd
|
||||
assert.cpp
|
||||
buffer.cpp
|
||||
buildinfo.cpp
|
||||
byteswap.cpp
|
||||
heapmgr.cpp
|
||||
@ -61,6 +62,7 @@ install(
|
||||
assert.hpp
|
||||
bit.hpp
|
||||
bstring.hpp
|
||||
buffer.hpp
|
||||
buildinfo.hpp
|
||||
byteswap.hpp
|
||||
defines.hpp
|
||||
|
16
deps/ox/src/ox/std/buffer.cpp
vendored
Normal file
16
deps/ox/src/ox/std/buffer.cpp
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright 2015 - 2021 gary@drinkingtea.net
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include "error.hpp"
|
||||
#include "buffer.hpp"
|
||||
|
||||
namespace ox {
|
||||
|
||||
template class Vector<char>;
|
||||
|
||||
}
|
19
deps/ox/src/ox/std/buffer.hpp
vendored
Normal file
19
deps/ox/src/ox/std/buffer.hpp
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright 2015 - 2021 gary@drinkingtea.net
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "vector.hpp"
|
||||
|
||||
namespace ox {
|
||||
|
||||
extern template class Vector<char>;
|
||||
|
||||
using Buffer = Vector<char>;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user