mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Dynamic protocols.
This commit is contained in:
committed by
Christoffer Lerno
parent
4cc30c0d33
commit
49c4595457
@@ -84,7 +84,7 @@ fn usz! Stream.available(&self) @inline
|
||||
return IoError.NOT_SEEKABLE?;
|
||||
}
|
||||
|
||||
fn usz! Stream.read_any(&self, any ref)
|
||||
fn usz! Stream.read_any(&self, any* ref)
|
||||
{
|
||||
return self.read_all(ref.ptr[:ref.type.sizeof]);
|
||||
}
|
||||
@@ -94,7 +94,7 @@ fn usz! Stream.read_any(&self, any ref)
|
||||
* @require ref.ptr != null
|
||||
* @ensure return == ref.type.sizeof
|
||||
*/
|
||||
fn usz! Stream.write_any(&self, any ref)
|
||||
fn usz! Stream.write_any(&self, any* ref)
|
||||
{
|
||||
return self.write_all(ref.ptr[:ref.type.sizeof]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user