google / go-tpm

Apache License 2.0
562 stars 161 forks source link

Consider an UnmarshalReader API for types #336

Open chrisfenner opened 1 year ago

chrisfenner commented 1 year ago

One might use go-tpm with a file or bytes.Reader containing the concatenation of a bunch of TPM types. Supporting Unmarshal from a reader would allow letting the Unmarshal command consume the amount of data from the Reader that it used.