}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding bool array or slice: length exceeds input size (%!d(string=Bool) elements)", length)
+ errorf("decoding bool array or slice: length exceeds input size (%d elements)", length)
}
slice[i] = state.decodeUint() != 0
}
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding complex64 array or slice: length exceeds input size (%!d(string=Complex64) elements)", length)
+ errorf("decoding complex64 array or slice: length exceeds input size (%d elements)", length)
}
real := float32FromBits(state.decodeUint(), ovfl)
imag := float32FromBits(state.decodeUint(), ovfl)
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding complex128 array or slice: length exceeds input size (%!d(string=Complex128) elements)", length)
+ errorf("decoding complex128 array or slice: length exceeds input size (%d elements)", length)
}
real := float64FromBits(state.decodeUint())
imag := float64FromBits(state.decodeUint())
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding float32 array or slice: length exceeds input size (%!d(string=Float32) elements)", length)
+ errorf("decoding float32 array or slice: length exceeds input size (%d elements)", length)
}
slice[i] = float32(float32FromBits(state.decodeUint(), ovfl))
}
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding float64 array or slice: length exceeds input size (%!d(string=Float64) elements)", length)
+ errorf("decoding float64 array or slice: length exceeds input size (%d elements)", length)
}
slice[i] = float64FromBits(state.decodeUint())
}
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding int array or slice: length exceeds input size (%!d(string=Int) elements)", length)
+ errorf("decoding int array or slice: length exceeds input size (%d elements)", length)
}
x := state.decodeInt()
// MinInt and MaxInt
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding int16 array or slice: length exceeds input size (%!d(string=Int16) elements)", length)
+ errorf("decoding int16 array or slice: length exceeds input size (%d elements)", length)
}
x := state.decodeInt()
if x < math.MinInt16 || math.MaxInt16 < x {
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding int32 array or slice: length exceeds input size (%!d(string=Int32) elements)", length)
+ errorf("decoding int32 array or slice: length exceeds input size (%d elements)", length)
}
x := state.decodeInt()
if x < math.MinInt32 || math.MaxInt32 < x {
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding int64 array or slice: length exceeds input size (%!d(string=Int64) elements)", length)
+ errorf("decoding int64 array or slice: length exceeds input size (%d elements)", length)
}
slice[i] = state.decodeInt()
}
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding int8 array or slice: length exceeds input size (%!d(string=Int8) elements)", length)
+ errorf("decoding int8 array or slice: length exceeds input size (%d elements)", length)
}
x := state.decodeInt()
if x < math.MinInt8 || math.MaxInt8 < x {
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding string array or slice: length exceeds input size (%!d(string=String) elements)", length)
+ errorf("decoding string array or slice: length exceeds input size (%d elements)", length)
}
u := state.decodeUint()
n := int(u)
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding uint array or slice: length exceeds input size (%!d(string=Uint) elements)", length)
+ errorf("decoding uint array or slice: length exceeds input size (%d elements)", length)
}
x := state.decodeUint()
/*TODO if math.MaxUint32 < x {
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding uint16 array or slice: length exceeds input size (%!d(string=Uint16) elements)", length)
+ errorf("decoding uint16 array or slice: length exceeds input size (%d elements)", length)
}
x := state.decodeUint()
if math.MaxUint16 < x {
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding uint32 array or slice: length exceeds input size (%!d(string=Uint32) elements)", length)
+ errorf("decoding uint32 array or slice: length exceeds input size (%d elements)", length)
}
x := state.decodeUint()
if math.MaxUint32 < x {
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding uint64 array or slice: length exceeds input size (%!d(string=Uint64) elements)", length)
+ errorf("decoding uint64 array or slice: length exceeds input size (%d elements)", length)
}
slice[i] = state.decodeUint()
}
}
for i := 0; i < length; i++ {
if state.b.Len() == 0 {
- errorf("decoding uintptr array or slice: length exceeds input size (%!d(string=Uintptr) elements)", length)
+ errorf("decoding uintptr array or slice: length exceeds input size (%d elements)", length)
}
x := state.decodeUint()
if uint64(^uintptr(0)) < x {