Remove (ptr base.u8).read_u32le method

This commit is contained in:
Nigel Tao committed 2018-05-04 12:11:42 +10:00
1 parent f64bf4af61
commit c9ec81f0d6
4 files changed
+9 -33

No files matched your search

+2 -9
View File
@@ -144,16 +144,9 @@ const (
PlaceholderNewName = t.IDDiamond
)
// TODO: drop the U8.
var PtrU8Funcs = []string{
// TODO: these should really have preconditions like "this.length() >= 4".
// Should this be explicit in the Wuffs syntax here, or enforced as a
// special case in the compiler (during bounds checking)?
"T.read_u16be(at u32)(ret u16)",
"T.read_u16le(at u32)(ret u16)",
"T.read_u32be(at u32)(ret u32)",
"T.read_u32le(at u32)(ret u32)",
"T.read_u64be(at u32)(ret u64)",
"T.read_u64le(at u32)(ret u64)",
// TODO: a length method.
}
var SliceFuncs = []string{