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)
130130 if ( type == typeof ( IBitWritable ) )
131131 {
132132 object instance = Activator . CreateInstance ( type ) ;
133- ( ( IBitWritable ) instance ) . Read ( this ) ;
133+ ( ( IBitWritable ) instance ) . Read ( this . source ) ;
134134 return instance ;
135135 }
136136 if ( type . IsEnum )
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ public void WriteObjectPacked(object value)
147147 }
148148 else if ( value is IBitWritable )
149149 {
150- ( ( IBitWritable ) value ) . Write ( this ) ;
150+ ( ( IBitWritable ) value ) . Write ( this . sink ) ;
151151 return ;
152152 }
153153 else if ( value . GetType ( ) . IsEnum )
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
3+ using System . IO ;
34using System . Linq ;
45using System . Text ;
56
67namespace MLAPI . Serialization
78{
89 public interface IBitWritable
910 {
10- void Write ( BitWriter writer ) ;
11- void Read ( BitReader reader ) ;
11+ void Write ( Stream stream ) ;
12+ void Read ( Stream stream ) ;
1213 }
1314}
You can’t perform that action at this time.
0 commit comments