microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.28k stars 119 forks source link

support for read* on buffer #347

Open pelikhan opened 1 year ago

pelikhan commented 1 year ago

Same APIs as node.js. We already support Buffer.getAt, Buffer.setAt that maps internally to the C runtime serialization library; but it needs a friendlier layer. sources: https://github.com/microsoft/devicescript/blob/main/packages/core/src/buffer.ts#L35