Skip to content

Commit

Permalink
* Use array of bytes instead of loop in FormTagHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
n10v committed May 29, 2016
1 parent d6520ac commit 5b85da7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions header.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ func FormTagHeader() []byte {

// Size
// Function setSize in tag.go writes actual size of tag
for i := 0; i < 4; i++ {
b.WriteByte(0)
}
b.Write([]byte{0, 0, 0, 0})

bytesBufPool.Put(b)
return b.Bytes()
Expand Down

0 comments on commit 5b85da7

Please sign in to comment.