(b []byte)
| 38 | } |
| 39 | |
| 40 | func (this *FileWriter) WriteHeader(b []byte) (n int, err error) { |
| 41 | if !this.isPartial && !this.hasMeta { |
| 42 | err = errors.New("no meta found") |
| 43 | return |
| 44 | } |
| 45 | |
| 46 | n, err = this.bFile.Write(this.hash, BlockTypeHeader, b, -1) |
| 47 | this.realHeaderSize += int64(n) |
| 48 | return |
| 49 | } |
| 50 | |
| 51 | func (this *FileWriter) WriteBody(b []byte) (n int, err error) { |
| 52 | if !this.isPartial && !this.hasMeta { |