|
@@ -27,9 +27,13 @@ class FileEntry {
|
|
bytes = haxe.io.Bytes.alloc(allocSize);
|
|
bytes = haxe.io.Bytes.alloc(allocSize);
|
|
TMP_BYTES = bytes;
|
|
TMP_BYTES = bytes;
|
|
}
|
|
}
|
|
|
|
+ readFull(bytes,pos,len);
|
|
|
|
+ return bytes;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function readFull( bytes, pos, len ) {
|
|
if( readBytes(bytes,0,pos,len) < len )
|
|
if( readBytes(bytes,0,pos,len) < len )
|
|
throw new haxe.io.Eof();
|
|
throw new haxe.io.Eof();
|
|
- return bytes;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public function getText() return getBytes().toString();
|
|
public function getText() return getBytes().toString();
|