This commit is contained in:
Miek Gieben 2011-09-01 08:35:08 +02:00
parent 00bd39bc12
commit d59c57364a
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ func (h *RR_Header) RawSetRdlength(buf []byte, off int) bool {
return true
}
// RawSetId sets the message ID in buf.
func RawSetId(buf []byte, off int, id uint16) bool {
buf[off], buf[off+1] = packUint16(id)
return true