Pure package detail
json
gno.land/p/samcrew/deps/onbloc/json
Indexed deployment identity with independently loaded latest RPC source. Functions and Render are realm-only RPC capabilities.
Indexed deployment
Identity
- Package path
- gno.land/p/samcrew/deps/onbloc/json
- Block
- 98887
- Deployed (UTC)
- Transaction
- tKjntaAvNpAcDJkGy/yEZbVogDdEPG9qKod0oURnngA=
Latest RPC state
Source
package json
import (
"bytes"
)
const (
unescapeStackBufSize = 64
absMinInt64 = 1 << 63
maxInt64 = absMinInt64 - 1
maxUint64 = 1<<64 - 1
)
// PaseStringLiteral parses a string from the given byte slice.
func ParseStringLiteral(data []byte) (string, error) {
var buf [unescapeStackBufSize]byte
bf, err := Unescape(data, buf[:])
if err != nil {
return "", errInvalidStringInput
}
return string(bf), nil
}
// ParseBoolLiteral parses a boolean value from the given byte slice.
func ParseBoolLiteral(data []byte) (bool, error) {
switch {
case bytes.Equal(data, trueLiteral):
return true, nil
case bytes.Equal(data, falseLiteral):
return false, nil
default:
return false, errMalformedBooleanValue
}
}
The verified vm/qfuncs operation accepts realm paths only.
Pure packages expose source files but do not have Realm Render.