xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 属性
QBuffer类 参考
类 QBuffer 继承关系图:
QCore

Public 成员函数

静态 Public 属性

额外继承的成员函数

详细描述

在文件 QBuffer.xcsm4 行定义.

构造及析构函数说明

◆ QBuffer()

QBuffer ( ) throws IllegalArgumentException

在文件 QBuffer.xcsm15 行定义.

15 {
16 nativehandle = QtXnl.createNObject(QType.qtBuffer, 0);
17 if (nativehandle == 0){
18 throw new IllegalArgumentException("can not create buffer");
19 }
20 }
long nativehandle
Definition QNative.xcsm:91

成员函数说明

◆ finalize()

void finalize ( )

在文件 QBuffer.xcsm31 行定义.

31 {
32 if (nativehandle != 0){
33 QtXnl.widget_slot(nativehandle, Constant.DELLOCBUFFER);
34 }
35 }

◆ open()

bool open ( int  openFlags)

在文件 QBuffer.xcsm21 行定义.

21 {
22 return 0 != QtXnl.widget_set_bint_value(nativehandle, Constant.OPENBUFFER, openFlags);
23 }

◆ setBuffer() [1/2]

void setBuffer ( @NotNilptr QByteArray  array)

在文件 QBuffer.xcsm28 行定义.

28 {
29 QtXnl.long_intlong(nativehandle, Constant.BUFFERSETDATA, array.nativehandle);
30 }

◆ setBuffer() [2/2]

void setBuffer ( byte []  data,
int  position,
int  length 
)

在文件 QBuffer.xcsm25 行定义.

25 {
26 QtXnl.array_int2(nativehandle, Constant.BUFFERSETDATA, data, position, length);
27 }

结构体成员变量说明

◆ Append

const int Append = 0x0004
static

在文件 QBuffer.xcsm10 行定义.

◆ NotOpen

const int NotOpen = 0x0000
static

在文件 QBuffer.xcsm6 行定义.

◆ ReadOnly

const int ReadOnly = 0x0001
static

在文件 QBuffer.xcsm7 行定义.

◆ ReadWrite

const int ReadWrite = ReadOnly | WriteOnly
static

在文件 QBuffer.xcsm9 行定义.

◆ Text

const int Text = 0x0010
static

在文件 QBuffer.xcsm12 行定义.

◆ Truncate

const int Truncate = 0x0008
static

在文件 QBuffer.xcsm11 行定义.

◆ Unbuffered

const int Unbuffered = 0x0020
static

在文件 QBuffer.xcsm13 行定义.

◆ WriteOnly

const int WriteOnly = 0x0002
static

在文件 QBuffer.xcsm8 行定义.