func (b *U16Bytes) TPMMarshal(out io.Writer) error {
	size := uint16(len([]byte(*b)))
	if err := binary.Write(out, binary.BigEndian, size); err != nil {
		return err
	}
	n, err := out.Write(*b)
	if err != nil {
		return err
	}
	if n != int(size) {
		return fmt.Errorf("unable to write all contents of U16Bytes")
	}
	return nil
}
TPMMarshal packs U16Bytes
package tpmutil
import (
	"encoding/binary"
	"fmt"
	"io"
)
type RawBytes []byte
type U16Bytes []byte