ByteData:setString

Available since LÖVE 12.0
This function is not supported in earlier versions.

Replaces all or part of the ByteData's memory with the contents of a string.

Function

Synopsis

ByteData:setString( data, offset )

Arguments

string data
The bytes to copy to the Data object.
number offset (0)
An optional byte offset into the Data's memory to copy to.

Returns

Nothing.

See Also

Other Languages