File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
MLAPI/NetworkingManagerComponents/Binary Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public object ReadObjectPacked(Type type)
130
130
if ( type == typeof ( IBitWritable ) )
131
131
{
132
132
object instance = Activator . CreateInstance ( type ) ;
133
- ( ( IBitWritable ) instance ) . Read ( this ) ;
133
+ ( ( IBitWritable ) instance ) . Read ( this . source ) ;
134
134
return instance ;
135
135
}
136
136
if ( type . IsEnum )
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ public void WriteObjectPacked(object value)
147
147
}
148
148
else if ( value is IBitWritable )
149
149
{
150
- ( ( IBitWritable ) value ) . Write ( this ) ;
150
+ ( ( IBitWritable ) value ) . Write ( this . sink ) ;
151
151
return ;
152
152
}
153
153
else if ( value . GetType ( ) . IsEnum )
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
+ using System . IO ;
3
4
using System . Linq ;
4
5
using System . Text ;
5
6
6
7
namespace MLAPI . Serialization
7
8
{
8
9
public interface IBitWritable
9
10
{
10
- void Write ( BitWriter writer ) ;
11
- void Read ( BitReader reader ) ;
11
+ void Write ( Stream stream ) ;
12
+ void Read ( Stream stream ) ;
12
13
}
13
14
}
You can’t perform that action at this time.
0 commit comments