package sfml

  1. Overview
  2. Docs
type t
val create : unit -> t
val append : packet:t -> data:string -> unit
val copy : packet:t -> t
val clear : packet:t -> unit
val getData : packet:t -> string
val endOfPacket : packet:t -> bool
val canRead : packet:t -> bool
val writeBool : packet:t -> v:bool -> unit
val writeFloat : packet:t -> v:float -> unit
val writeDouble : packet:t -> v:float -> unit
val writeString : packet:t -> v:string -> unit
val writeInt8 : packet:t -> v:int -> unit
val writeUint8 : packet:t -> v:int -> unit
val writeInt16 : packet:t -> v:int -> unit
val writeUint16 : packet:t -> v:int -> unit
val writeInt31 : packet:t -> v:int -> unit
val writeInt32 : packet:t -> v:int32 -> unit
val writeInt64 : packet:t -> v:int64 -> unit
val readBool : packet:t -> bool
val readFloat : packet:t -> float
val readDouble : packet:t -> float
val readString : packet:t -> string
val readInt8 : packet:t -> int
val readUint8 : packet:t -> int
val readInt16 : packet:t -> int
val readUint16 : packet:t -> int
val readInt31 : packet:t -> int
val readInt32 : packet:t -> int32
val readInt64 : packet:t -> int64
OCaml

Innovation. Community. Security.