MCPcopy
hub / github.com/golang/crypto / AddValue

Method AddValue

cryptobyte/builder.go:345–350  ·  view source on GitHub ↗

AddValue calls Marshal on v, passing a pointer to the builder to append to. If Marshal returns an error, it is set on the Builder so that subsequent appends don't have an effect.

(v MarshalingValue)

Source from the content-addressed store, hash-verified

343// If Marshal returns an error, it is set on the Builder so that subsequent
344// appends don't have an effect.
345func (b *Builder) AddValue(v MarshalingValue) {
346 err := v.Marshal(b)
347 if err != nil {
348 b.err = err
349 }
350}

Callers

nothing calls this directly

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected