message-size-increase #3

Merged
sashakoshka merged 227 commits from message-size-increase into main 2025-09-07 19:27:38 -06:00
2 changed files with 24 additions and 0 deletions
Showing only changes of commit 9d40b81e00 - Show all commits

11
tape/error.go Normal file
View File

@ -0,0 +1,11 @@
package tape
// Error enumerates common errors in this package.
type Error string; const (
ErrTooLong Error = "data structure too long"
)
// Error implements the error interface.
func (err Error) Error() string {
return string(err)
}

13
tape/limits.go Normal file
View File

@ -0,0 +1,13 @@
package tape
// MaxStructureLength determines how long a TAPE data structure can be. This
// applies to:
//
// - OTA
// - SBA/LBA
// - KTV
//
// By default it is set at 2^20 (about a million).
// You shouldn't need to change this. If you do, it should only be set once at
// the start of the program.
var MaxStructureLength = 1024 * 1024