func (s *SegmentExtractor) FindSegment(id string) []byte {
	byteID := []byte(id)
	for _, segment := range s.segments {
		if bytes.HasPrefix(segment, byteID) {
			return segment
		}
	}
	return nil
}
// FindSegment searches for a given ID and returns the first appearing segment
// bytes if present
FindSegment searches for a given ID and returns the first appearing segment
bytes if present
// FindSegment searches for a given ID and returns the first appearing segment // bytes if present
func (s *SegmentExtractor) FindSegment(id string) []byte {
	byteID := []byte(id)
	for _, segment := range s.segments {
		if bytes.HasPrefix(segment, byteID) {
			return segment
		}
	}
	return nil
}
func ( s * SegmentExtractor ) FindSegment ( id string ) [ ] byte { byteID := [ ] byte ( id ) for _ , segment := range s . segments { if bytes . HasPrefix ( segment , byteID ) { return segment } } return nil }
FindSegment searches for a given ID and returns the first appearing segment
bytes if present
FindSegment searches for a given ID and returns the first appearing segment bytes if present