(b []byte)
| 49 | } |
| 50 | |
| 51 | func (this *FileWriter) WriteBody(b []byte) (n int, err error) { |
| 52 | if !this.isPartial && !this.hasMeta { |
| 53 | err = errors.New("no meta found") |
| 54 | return |
| 55 | } |
| 56 | |
| 57 | n, err = this.bFile.Write(this.hash, BlockTypeBody, b, this.originOffset) |
| 58 | this.originOffset += int64(n) |
| 59 | this.realBodySize += int64(n) |
| 60 | return |
| 61 | } |
| 62 | |
| 63 | func (this *FileWriter) WriteBodyAt(b []byte, offset int64) (n int, err error) { |
| 64 | if !this.hasMeta { |