(i int64)
| 32 | } |
| 33 | |
| 34 | func itoa(i int64) string { |
| 35 | if i >= minItoa && i <= maxItoa { |
| 36 | beg := itoaOffset[i-minItoa] |
| 37 | if i == maxItoa { |
| 38 | return itoaBuffer[beg:] |
| 39 | } |
| 40 | end := itoaOffset[i-minItoa+1] |
| 41 | return itoaBuffer[beg:end] |
| 42 | } |
| 43 | return strconv.FormatInt(i, 10) |
| 44 | } |
| 45 | |
| 46 | type Encoder struct { |
| 47 | bw *bufio2.Writer |