Skip to content

Commit

Permalink
example
Browse files Browse the repository at this point in the history
  • Loading branch information
MexUK committed Sep 21, 2023
1 parent c0fb6b6 commit 43f7e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example2/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void func1()
bw.f32(32.0f);
bw.f64(64.0);
string str("abcde");
bw.cstr((char*)str.data(), 5);
bw.cstr((char*)str.data(), 6);
bw.mstr(str);
Type1 type1;
bw.st(type1);
Expand All @@ -46,7 +46,7 @@ void func1()
br.m_uiEndian = EEndian::INITIAL_ENDIAN;
float data32 = br.f32();
double data64 = br.f64();
str = br.cstr(5);
char *cstr = br.cstr(6);
str = br.mstr();
type1 = br.st<Type1>();
}

0 comments on commit 43f7e55

Please sign in to comment.