xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
std
Stream.xcs
浏览该文件的文档.
1
5
@Declare
6
interface
Stream
{
7
15
int
read
(
byte
[] buffer,
int
pos,
int
length
);
16
24
int
write
(
byte
[] buffer,
int
pos,
int
length
);
25
31
long
setPosition
(
int
pos);
32
37
long
getPosition
();
38
39
44
long
length
();
45
51
long
available
(
bool
wait);
52
56
void
close
();
57
};
Stream
流接口
Definition
BuiltinObjects.x:788
Stream.length
long length()
Stream.close
void close()
关闭流
Stream.write
int write(byte [] buffer, int pos, int length)
写入数据
Stream.available
long available(bool wait)
是否可读
Stream.getPosition
long getPosition()
获取流当前位置
Stream.read
int read(byte [] buffer, int pos, int length)
读取数据
Stream.setPosition
long setPosition(int pos)
设置流位置
制作者
1.9.8