code: func CodeEntries(m *module.Module) ([]*module.CodeEntry, error) {
  
  	entries := make([]*module.CodeEntry, len(m.Code.Segments))
  
  	for i, s := range m.Code.Segments {
  		buf := bytes.NewBuffer(s.Code)
  		entry, err := ReadCodeEntry(buf)
  		if err != nil {
  			return nil, err
  		}
  		entries[i] = entry
  	}
  
  	return entries, nil
  }
docs: // CodeEntries returns the WASM code entries contained in r.