// UnmarshalBinary sets the values retrieved from byte sequence in an IE.
UnmarshalBinary sets the values retrieved from byte sequence in an IE.
// UnmarshalBinary sets the values retrieved from byte sequence in an IE .
func (i *IE) UnmarshalBinary(b []byte) error {
	l := len(b)
	if l < 3 {
		return io.ErrUnexpectedEOF
	}
	i.Tag = Tag(b[0])
	i.Length = b[1]
	if l < 2+int(i.Length) {
		return io.ErrUnexpectedEOF
	}
	i.Value = b[2 : 2+int(i.Length)]
	return nil
}
func ( i * IE ) UnmarshalBinary ( b [ ] byte ) error { l := len ( b ) if l < 3 { return io . ErrUnexpectedEOF } i . Tag = Tag ( b [ 0 ] ) i . Length = b [ 1 ] if l < 2 + int ( i . Length ) { return io . ErrUnexpectedEOF } i . Value = b [ 2 : 2 + int ( i . Length ) ] return nil }
UnmarshalBinary sets the values retrieved from byte sequence in an IE.
UnmarshalBinary sets the values retrieved from byte sequence in an IE .