blob: aac9809f4f1a1871dd7e4a6dd739225f0c695869 [file] [log] [blame]
// generated by stringer -type=Status; DO NOT EDIT
// +build fuchsia
package zx
const (
_Status_name_0 = "ErrNoSpaceErrFileBigErrNotFileErrNotDirErrBadPath"
_Status_name_1 = "ErrIODataLossErrIODataIntegrityErrIORefusedErrIO"
_Status_name_2 = "ErrAccessDenied"
_Status_name_3 = "ErrUnavailableErrAlreadyBoundErrAlreadyExistsErrNotFoundErrPeerClosedErrCanceledErrShouldWaitErrTimedOutErrBadState"
_Status_name_4 = "ErrBufferTooSmallErrOutOfRangeErrBadSyscallErrWrongTypeErrBadHandleErrInvalidArgs"
_Status_name_5 = "ErrInterruptedRetryErrCallFailedErrNoMemoryErrNoResourcesErrNotSupportedErrInternalErrOk"
)
var (
_Status_index_0 = [...]uint8{0, 10, 20, 30, 39, 49}
_Status_index_1 = [...]uint8{0, 13, 31, 43, 48}
_Status_index_2 = [...]uint8{0, 15}
_Status_index_3 = [...]uint8{0, 14, 29, 45, 56, 69, 80, 93, 104, 115}
_Status_index_4 = [...]uint8{0, 17, 30, 43, 55, 67, 81}
_Status_index_5 = [...]uint8{0, 19, 32, 43, 57, 72, 83, 88}
)
func (i Status) String() string {
switch {
case -54 <= i && i <= -50:
i -= -54
return _Status_name_0[_Status_index_0[i]:_Status_index_0[i+1]]
case -43 <= i && i <= -40:
i -= -43
return _Status_name_1[_Status_index_1[i]:_Status_index_1[i+1]]
case i == -30:
return _Status_name_2
case -28 <= i && i <= -20:
i -= -28
return _Status_name_3[_Status_index_3[i]:_Status_index_3[i+1]]
case -15 <= i && i <= -10:
i -= -15
return _Status_name_4[_Status_index_4[i]:_Status_index_4[i+1]]
case -6 <= i && i <= 0:
i -= -6
return _Status_name_5[_Status_index_5[i]:_Status_index_5[i+1]]
default:
var buf [20]byte
return "zx.Status(" + string(itoa(buf[:], int(i))) + ")"
}
}
func itoa(buf []byte, val int) []byte {
i := len(buf) - 1
neg := false
if val < 0 {
neg = true
val = 0 - val
}
for val >= 10 {
buf[i] = byte(val%10 + '0')
i--
val /= 10
}
buf[i] = byte(val + '0')
if neg {
i--
buf[i] = '-'
}
return buf[i:]
}