-
-
Save fengb/d346fa0f883547260ce0e4e48f158bbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Frame definition: | |
// 4 bytes = next ptr | |
// 4 bytes = data length | |
// n bytes = data | |
const Frame = @OpaqueType(); | |
const Node = packed struct { | |
next: *?*Frame, | |
data_len: *usize, | |
data: [*]u8, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment