This commit is contained in:
Jae Kwon
2014-06-05 18:17:09 -07:00
parent d68f7a2262
commit 08faa88d02
2 changed files with 45 additions and 14 deletions

View File

@ -28,6 +28,13 @@ func (self *Block) Validate() bool {
return false
}
func (self *Block) WriteTo(w io.Writer) (n int64, err error) {
n, err = WriteOnto(&self.Header, w, n, err)
n, err = WriteOnto(&self.Validation, w, n, err)
n, err = WriteOnto(&self.Data, w, n, err)
return
}
/* Block > Header */