diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-05-30 12:00:54 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-05-30 12:00:54 -0400 |
commit | 703e98f2759148aa2d6ac80f2519ae8e41da3e95 (patch) | |
tree | 746c17fb2e155ed8448b3ac44aced0672fc83a95 /pkg/binstruct/binint.go | |
parent | 8576e5f207f9d3b7c6324ed71a3ca6a005f9ae7c (diff) |
ahhhhhhh
Diffstat (limited to 'pkg/binstruct/binint.go')
-rw-r--r-- | pkg/binstruct/binint.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/binstruct/binint.go b/pkg/binstruct/binint.go new file mode 100644 index 0000000..fb6374c --- /dev/null +++ b/pkg/binstruct/binint.go @@ -0,0 +1,29 @@ +package binstruct + +import ( + "reflect" + + "lukeshu.com/btrfs-tools/pkg/binstruct/binint" +) + +type ( + U8 = binint.U8 + U16le = binint.U16le + U32le = binint.U32le + U64le = binint.U64le + U16be = binint.U16be + U32be = binint.U32be + U64be = binint.U64be + I8 = binint.I8 + I16le = binint.I16le + I32le = binint.I32le + I64le = binint.I64le + I16be = binint.I16be + I32be = binint.I32be + I64be = binint.I64be +) + +var ( + u8Type = reflect.TypeOf(U8(0)) + i8Type = reflect.TypeOf(I8(0)) +) |