From b2365c4c0c9f74567c1ab2596b90d499bc073be3 Mon Sep 17 00:00:00 2001 From: Robin Wellner Date: Tue, 10 Jan 2017 14:38:59 +0100 Subject: [PATCH] Update USAGE.md --- USAGE.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/USAGE.md b/USAGE.md index ccd7b13..f7be3cc 100644 --- a/USAGE.md +++ b/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. +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 ```lua