Skip to content
Snippets Groups Projects
Select Git revision
  • 7eaa2f691017e799329807be2ede9619193d9041
  • without_tipselection default
  • develop protected
  • fix/grafana-local-dashboard
  • wasp
  • fix/dashboard-explorer-freeze
  • master
  • feat/timerqueue
  • test/sync_debug_and_650
  • feat/sync_revamp_inv
  • wip/sync
  • tool/db-recovery
  • portcheck/fix
  • fix/synchronization
  • feat/new-dashboard-analysis
  • feat/refactored-analysis-dashboard
  • feat/new-analysis-dashboard
  • test/demo-prometheus-fpc
  • prometheus_metrics
  • wip/analysis-server
  • merge/fpc-test-value-transfer
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
28 results

network.go

Blame
  • unmarshal.go 439 B
    package marshaling
    
    import (
    	"github.com/golang/protobuf/proto"
    	"github.com/iotaledger/goshimmer/packages/errors"
    )
    
    func Unmarshal(serializable Serializable, protobuf proto.Message, data []byte) (err errors.IdentifiableError) {
    	if unmarshalError := proto.Unmarshal(data, protobuf); unmarshalError != nil {
    		err = ErrUnmarshalFailed.Derive(unmarshalError, "unmarshal failed")
    	} else {
    		serializable.FromProto(protobuf)
    	}
    
    	return
    }