()
| 79 | } |
| 80 | |
| 81 | func (r *unixSocketRequest) Serialize() []byte { |
| 82 | b := writeBuffer{Bytes: make([]byte, sizeofUnixSocketRequest)} |
| 83 | b.Write(r.Family) |
| 84 | b.Write(r.Protocol) |
| 85 | native.PutUint16(b.Next(2), r.pad) |
| 86 | native.PutUint32(b.Next(4), r.States) |
| 87 | native.PutUint32(b.Next(4), r.INode) |
| 88 | native.PutUint32(b.Next(4), r.Show) |
| 89 | native.PutUint32(b.Next(4), r.Cookie[0]) |
| 90 | native.PutUint32(b.Next(4), r.Cookie[1]) |
| 91 | return b.Bytes |
| 92 | } |
| 93 | |
| 94 | func (r *unixSocketRequest) Len() int { return sizeofUnixSocketRequest } |
| 95 |