love.data.newByteData
Creates a new Data object containing arbitrary bytes.

Data:getPointer along with LuaJIT's FFI can be used to manipulate the contents of the ByteData object after it has been created.
bytedata = love.data.newByteData( datastring )
datastring string The byte string to copy.
bytedata ByteData The new Data object.
bytedata = love.data.newByteData( Data, offset, size )
Data Data The existing Data object to copy.
offset (0) number The offset of the subsection to copy, in bytes.
size (data:getSize()) number The size in bytes of the new Data object.
bytedata ByteData The new Data object.
bytedata = love.data.newByteData( size )
size number The size in bytes of the new Data object.
bytedata ByteData The new Data object.