VAE - Virtual Audio Engine
1
Small Data Driven Audio Engine
string.cpp
Go to the documentation of this file.
1
#include "
./ExperimentsCommon.hpp
"
2
#include "../src/types/THeapBuffer.hpp"
3
4
using
String
=
HeapBuffer<char>
;
5
6
struct
File
{
7
String
name
;
8
size_t
size
;
9
};
10
11
int
main
() {
12
HeapBuffer<File>
files;
13
{
14
File
f1;
15
f1.
name
.
set
(
"testname"
, 9);
16
files.
push
(f1);
17
}
18
File
& f1 = files[0];
19
auto
& buf = f1.
name
;
20
int
as = 0;
21
return
0;
22
}
ExperimentsCommon.hpp
tklb::HeapBuffer< char >
tklb::HeapBuffer::push
bool push(const T &object)
Push the object to the back of the buffer TODO tklb move version.
Definition:
THeapBuffer.hpp:280
tklb::String
Definition:
TString.hpp:72
tklb::String::set
void set(const String &str)
Definition:
TString.hpp:91
main
int main()
Definition:
string.cpp:11
File
Definition:
string.cpp:6
File::size
size_t size
Definition:
string.cpp:8
File::name
String name
Definition:
string.cpp:7
external
tklb
experiments
string.cpp
Generated by
1.9.2