Files

34 lines
987 B
Go

// Code generated by "stringer -type=blockID -trimprefix=block"; DO NOT EDIT.
package estream
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[blockPlainKey-1]
_ = x[blockEncryptedKey-2]
_ = x[blockEncStream-3]
_ = x[blockPlainStream-4]
_ = x[blockDatablock-5]
_ = x[blockEOS-6]
_ = x[blockEOF-7]
_ = x[blockError-8]
_ = x[blockPlainCompressedStream-9]
_ = x[blockEncCompressedStream-10]
}
const _blockID_name = "PlainKeyEncryptedKeyEncStreamPlainStreamDatablockEOSEOFErrorPlainCompressedStreamEncCompressedStream"
var _blockID_index = [...]uint8{0, 8, 20, 29, 40, 49, 52, 55, 60, 81, 100}
func (i blockID) String() string {
idx := int(i) - 1
if i < 1 || idx >= len(_blockID_index)-1 {
return "blockID(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _blockID_name[_blockID_index[idx]:_blockID_index[idx+1]]
}