(blockCode int64, total int, data []byte)
| 49 | } |
| 50 | |
| 51 | func (e *Encoder) frame(blockCode int64, total int, data []byte) string { |
| 52 | return fmt.Sprintf("%d/%d/%d|%s", blockCode, e.chunkLen, total, string(data)) |
| 53 | } |
| 54 | |
| 55 | func numberOfChunks(length, chunkLen int) int { |
| 56 | n := length / chunkLen |