xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QBuffer.xcsm
浏览该文件的文档.
1
//xlang Source, Name:QXBuffer.xcsm
2
//Date: Thu Sep 22:15:52 2018
3
package
Qt{
4
@SuppressWarnings public class QBuffer : QCore{
5
public static const int
6
NotOpen = 0x0000,
7
ReadOnly = 0x0001,
8
WriteOnly = 0x0002,
9
ReadWrite = ReadOnly | WriteOnly,
10
Append = 0x0004,
11
Truncate = 0x0008,
12
Text = 0x0010,
13
Unbuffered = 0x0020;
14
15
public
QBuffer
() throws
IllegalArgumentException
{
16
nativehandle = QtXnl.createNObject(QType.qtBuffer, 0);
17
if
(nativehandle == 0){
18
throw
new
IllegalArgumentException
(
"can not create buffer"
);
19
}
20
}
21
public
bool
open
(
int
openFlags){
22
return
0 != QtXnl.widget_set_bint_value(nativehandle, Constant.OPENBUFFER, openFlags);
23
}
24
25
public
void
setBuffer
(
byte
[] data,
int
position,
int
length){
26
QtXnl.array_int2(nativehandle, Constant.BUFFERSETDATA, data, position, length);
27
}
28
public
void
setBuffer
(@NotNilptr QByteArray array){
29
QtXnl.long_intlong(nativehandle, Constant.BUFFERSETDATA, array.nativehandle);
30
}
31
public
void
finalize
(){
32
if
(nativehandle != 0){
33
QtXnl.widget_slot(nativehandle, Constant.DELLOCBUFFER);
34
}
35
}
36
};
37
};
IllegalArgumentException
参数异常
Definition
BuiltinObjects.x:501
Qt.QBuffer.finalize
void finalize()
Definition
QBuffer.xcsm:31
Qt.QBuffer.setBuffer
void setBuffer(byte [] data, int position, int length)
Definition
QBuffer.xcsm:25
Qt.QBuffer.setBuffer
void setBuffer(@NotNilptr QByteArray array)
Definition
QBuffer.xcsm:28
Qt.QBuffer.open
bool open(int openFlags)
Definition
QBuffer.xcsm:21
Qt.QBuffer.QBuffer
QBuffer()
Definition
QBuffer.xcsm:15
制作者
1.9.8