Files
bun.sh/src
Jarred Sumner 206820d27a [bun:ffi] Implement read.{u8,i8,i16,i32,u16,u32,ptr,intptr}
`read` in `bun:ffi` lets you read data from a pointer without creating a new DataView/ArrayBufferView

```
import {read} from 'bun:ffi';

    expect(read.i8(ptr_, i)).toBe(view.getInt8(i, true));
    expect(read.i16(ptr_, i)).toBe(view.getInt16(i, true));
    expect(read.i32(ptr_, i)).toBe(view.getInt32(i, true));
    expect(read.u8(ptr_, i)).toBe(view.getUint8(i, true));
    expect(read.u16(ptr_, i)).toBe(view.getUint16(i, true));
    expect(read.u32(ptr_, i)).toBe(view.getUint32(i, true));
  }
```
2022-09-08 23:29:30 -07:00
..
2022-05-19 05:37:18 -07:00
2022-03-04 00:20:22 -08:00
2022-08-24 09:10:49 -07:00
2022-03-12 05:56:11 -08:00
2022-08-22 09:14:41 -07:00
2022-08-28 21:28:05 -07:00
2022-03-08 18:54:54 -08:00
2022-08-26 18:50:22 -07:00
2022-06-22 23:21:48 -07:00
2022-07-04 06:03:31 -07:00
2022-03-08 18:54:54 -08:00
2022-01-24 19:12:58 -08:00
2022-08-10 17:40:17 -07:00
2022-06-22 23:21:48 -07:00
2022-03-08 18:54:54 -08:00
2022-08-27 02:59:07 -07:00
2021-10-30 04:52:15 -07:00
2022-04-14 00:39:55 -07:00
2022-08-28 21:46:47 -07:00
2022-03-08 18:54:54 -08:00
2021-10-10 23:41:27 -07:00
2022-09-01 00:14:20 -07:00
2022-03-15 06:03:29 -07:00
2022-08-18 19:05:07 -07:00
2022-03-04 00:20:22 -08:00
2022-09-03 03:57:43 -07:00
2022-09-03 03:57:43 -07:00
2022-03-02 21:12:02 -08:00
2022-06-22 06:56:47 -07:00
2022-08-28 21:46:47 -07:00
2022-04-18 21:18:37 -07:00
2022-06-07 22:32:46 -07:00
2022-07-09 05:09:16 -07:00
2022-03-08 18:54:54 -08:00
2022-03-08 18:54:54 -08:00
2022-08-21 01:08:40 -07:00
2022-03-16 05:00:47 -07:00
2022-03-08 18:54:54 -08:00
2022-08-07 23:23:42 -07:00
2022-07-22 16:17:13 -07:00
2022-09-07 19:56:11 -07:00
2022-03-13 06:08:10 -07:00
2022-05-20 00:59:50 -07:00
2022-03-10 00:44:01 -08:00
2021-12-30 22:06:45 -08:00
2022-05-03 04:35:49 -07:00
2022-04-07 06:08:48 -07:00
2022-03-08 18:54:54 -08:00
2022-03-08 18:54:54 -08:00
2022-06-22 23:21:48 -07:00
2022-04-03 16:35:09 -07:00