12 lines
320 B
Rust
12 lines
320 B
Rust
// expect: run
|
|
// result: {"variant":"ok","payload":[4660]}
|
|
// equivalent: std/endian_read.air
|
|
// phase: 6
|
|
// spec: docs/spec/16-standard-library.md §2.3; docs/spec/15-source-language.md §13
|
|
module test.endian
|
|
import std.bytes;
|
|
|
|
fn main() -> std.bytes.ReadU16
|
|
effects []
|
|
{ return std.bytes.read_u16_le(b"\x34\x12"); }
|