// MarshalTo puts the byte sequence in the byte array given as b.
MarshalTo puts the byte sequence in the byte array given as b.
// MarshalTo puts the byte sequence in the byte array given as b .
func (i *IE) MarshalTo(b []byte) error {
	if len(b) < 2 {
		return io.ErrUnexpectedEOF
	}
	b[0] = uint8(i.Tag)
	b[1] = i.Length
	copy(b[2:i.MarshalLen()], i.Value)
	return nil
}
func ( i * IE ) MarshalTo ( b [ ] byte ) error { if len ( b ) < 2 { return io . ErrUnexpectedEOF } b [ 0 ] = uint8 ( i . Tag ) b [ 1 ] = i . Length copy ( b [ 2 : i . MarshalLen ( ) ] , i . Value ) return nil }
MarshalTo puts the byte sequence in the byte array given as b.
MarshalTo puts the byte sequence in the byte array given as b .