fix write to stream
This commit is contained in:
parent
024342d4da
commit
e64025f4f3
2
AST.cs
2
AST.cs
|
@ -614,7 +614,7 @@ namespace langtest
|
||||||
{
|
{
|
||||||
List<long> box = boxes[boxId].Item1;
|
List<long> box = boxes[boxId].Item1;
|
||||||
byte[] data=box.Skip((int)offset).Take((int)len).Select<long,byte>((e)=>{
|
byte[] data=box.Skip((int)offset).Take((int)len).Select<long,byte>((e)=>{
|
||||||
return (byte)(e % byte.MaxValue);
|
return (byte)(e % 256);
|
||||||
}).ToArray();
|
}).ToArray();
|
||||||
|
|
||||||
GetStream(streamId).Write(data,0,data.Length);
|
GetStream(streamId).Write(data,0,data.Length);
|
||||||
|
|
Loading…
Reference in New Issue