File: elsize_tinygo.go

package info (click to toggle)
golang-github-tinylib-msgp 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,652 kB
  • sloc: makefile: 48
file content (12 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
//go:build tinygo

package msgp

// for tinygo, getBytespec just calls calcBytespec
// a simple/slow function with a switch statement -
// doesn't require any heap alloc, moves the space
// requirements into code instad of ram

func getBytespec(v byte) bytespec {
	return calcBytespec(v)
}