on c2fc795 help sign in
25 lines 479 B history raw
1// +build appengine appenginevm
3package jsonparser
5import (
6 "strconv"
7)
9// See fastbytes_unsafe.go for explanation on why *[]byte is used (signatures must be consistent with those in that file)
11func equalStr(b *[]byte, s string) bool {
12 return string(*b) == s
15func parseFloat(b *[]byte) (float64, error) {
16 return strconv.ParseFloat(string(*b), 64)
19func bytesToString(b *[]byte) string {
20 return string(*b)
23func StringToBytes(s string) []byte {
24 return []byte(s)