sources/network/bytestream.cpp

changeset 98
4f0f0b1b8e0b
parent 94
294803d4ab5d
child 99
f9f73eeba3b7
--- a/sources/network/bytestream.cpp	Thu Jul 23 18:07:39 2015 +0300
+++ b/sources/network/bytestream.cpp	Thu Jul 23 18:26:30 2015 +0300
@@ -136,7 +136,7 @@
 
 // -------------------------------------------------------------------------------------------------
 //
-char Bytestream::read_byte()
+int8_t Bytestream::read_byte()
 {
 	ensure_read_space (1);
 	return *m_cursor++;
@@ -144,7 +144,7 @@
 
 // -------------------------------------------------------------------------------------------------
 //
-short int Bytestream::read_short()
+int16_t Bytestream::read_short()
 {
 	ensure_read_space (2);
 	short int result = 0;
@@ -158,7 +158,7 @@
 
 // -------------------------------------------------------------------------------------------------
 //
-long int Bytestream::read_long()
+int32_t Bytestream::read_long()
 {
 	ensure_read_space (4);
 	long int result = 0;
@@ -250,7 +250,7 @@
 
 // -------------------------------------------------------------------------------------------------
 //
-void Bytestream::write_byte (char val)
+void Bytestream::write_byte (int8_t val)
 {
 	grow_to_fit (1);
 	write (val);
@@ -258,7 +258,7 @@
 
 // -------------------------------------------------------------------------------------------------
 //
-void Bytestream::write_short (short int val)
+void Bytestream::write_short (int16_t val)
 {
 	grow_to_fit (2);
 
@@ -268,7 +268,7 @@
 
 // -------------------------------------------------------------------------------------------------
 //
-void Bytestream::write_long (long int val)
+void Bytestream::write_long (int32_t val)
 {
 	grow_to_fit (4);
 

mercurial