mirror of
https://github.com/gvx/bitser.git
synced 2024-11-24 06:54:20 +00:00
Update USAGE.md
This commit is contained in:
parent
6403e4cc6b
commit
b2365c4c0c
8
USAGE.md
8
USAGE.md
@ -129,6 +129,14 @@ value = bitser.loadData(light_userdata, size)
|
|||||||
|
|
||||||
Deserializes `value` from raw data. You probably won't need to use this function ever.
|
Deserializes `value` from raw data. You probably won't need to use this function ever.
|
||||||
|
|
||||||
|
When running [LÖVE](https://love2d.org/), you would use it like this:
|
||||||
|
|
||||||
|
```lua
|
||||||
|
value = bitser.loadData(data:getPointer(), data:getSize())
|
||||||
|
```
|
||||||
|
|
||||||
|
Where `data` is an instance of a subclass of [Data](https://love2d.org/wiki/Data).
|
||||||
|
|
||||||
## loadLoveFile
|
## loadLoveFile
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
|
Loading…
Reference in New Issue
Block a user