sf.Packet – sfml Reference Manual
Packages
sfml
sf
Packet
Packet
append
canRead
clear
copy
endOfPacket
getData
getDataSize
getReadPosition
readBool
readDouble
readFloat
readInt16
readInt32
readInt8
readString
readUint16
readUint32
readUint8
writeBool
writeDouble
writeFloat
writeInt16
writeInt32
writeInt8
writeString
writeUint16
writeUint32
writeUint8
Packet
Object Hierarchy:
Description:
[
CCode
( cname =
"sfPacket"
, cprefix =
"sfPacket_"
, free_function =
"sfPacket_destroy"
) ]
[
Compact
]
public
class
Packet
Namespace:
sf
Package:
sfml
Content:
Creation methods:
public
Packet
()
Methods:
public
void
append
(
void
* data,
size_t
sizeInBytes)
public
bool
canRead
()
public
void
clear
()
public
Packet
copy
()
public
bool
endOfPacket
()
public
void
*
getData
()
public
size_t
getDataSize
()
public
size_t
getReadPosition
()
public
bool
readBool
()
public
double
readDouble
()
public
float
readFloat
()
public
int16
readInt16
()
public
int32
readInt32
()
public
int8
readInt8
()
public
void
readString
(
string
str)
public
uint16
readUint16
()
public
uint32
readUint32
()
public
uint8
readUint8
()
public
void
writeBool
(
bool
value)
public
void
writeDouble
(
double
value)
public
void
writeFloat
(
float
value)
public
void
writeInt16
(
int16
value)
public
void
writeInt32
(
int32
value)
public
void
writeInt8
(
int8
value)
public
void
writeString
(
string
str)
public
void
writeUint16
(
uint16
value)
public
void
writeUint32
(
uint32
value)
public
void
writeUint8
(
uint8
value)