aboutsummaryrefslogtreecommitdiff
path: root/src/integer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/integer.cpp')
-rw-r--r--src/integer.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/integer.cpp b/src/integer.cpp
new file mode 100644
index 0000000..ad48eaf
--- /dev/null
+++ b/src/integer.cpp
@@ -0,0 +1,27 @@
1#include "gats/integer.h"
2
3Gats::Integer::Integer() :
4 iVal( 0 )
5{
6}
7
8Gats::Integer::Integer( int64_t iVal ) :
9 iVal( iVal )
10{
11}
12
13Gats::Integer::~Integer()
14{
15}
16
17void Gats::Integer::write( Bu::Stream &rOut ) const
18{
19 rOut.write("i", 1 );
20 writePackedInt( rOut, iVal );
21}
22
23void Gats::Integer::read( Bu::Stream &rIn, char cType )
24{
25 readPackedInt( rIn, iVal );
26}
27