mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Add note to consider a read_u8_fast method.
This commit is contained in:
1 parent
417ecef784
commit
1cee9c6ea2
1 file changed
+9
@@ -14,6 +14,15 @@
|
||||
|
||||
package check
|
||||
|
||||
// TODO: should bounds checking even be responsible for selecting between
|
||||
// optimized implementations of e.g. read_u8? Instead, the Puffs code could
|
||||
// explicitly call either read_u8 or read_u8_fast, with the latter having
|
||||
// stronger preconditions.
|
||||
//
|
||||
// Doing so might need some syntactical distinction (not just a question mark)
|
||||
// between "foo?" and "bar?" if one of those methods can still return an error
|
||||
// code but never actually suspend.
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/big"
|
||||
|
||||
Reference in new issue
Block a user