func parseBinaryPadding(lengthByte byte, r io.Reader) (Value, error) {
	// Special case the "zero" length padding since we don't read anything for it.
	// The zero is in quotes since the marker of this is itself a byte of padding.
	if lengthByte == 0 {
		return padding{}, nil
	}

	numBytes, errLength := determineLength16(lengthByte, r)
	if errLength != nil {
		return nil, errors.WithMessage(errLength, "unable to parse length of padding")
	}

	buf := make([]byte, numBytes)
	if n, err := r.Read(buf); err != nil || n != int(numBytes) {
		return nil, errors.Errorf("read %d of expected %d padding bytes with err: %v", n, numBytes, err)
	}
	return padding{binary: buf}, nil
}
// parseBinaryPadding returns a padding Value while consuming the padding
// value number of bytes.
parseBinaryPadding returns a padding Value while consuming the padding
value number of bytes.
// parseBinaryPadding returns a padding Value while consuming the padding // value number of bytes .
func parseBinaryPadding(lengthByte byte, r io.Reader) (Value, error) {
	if lengthByte == 0 {
		return padding{}, nil
	}
	numBytes, errLength := determineLength16(lengthByte, r)
	if errLength != nil {
		return nil, errors.WithMessage(errLength, "unable to parse length of padding")
	}
	buf := make([]byte, numBytes)
	if n, err := r.Read(buf); err != nil || n != int(numBytes) {
		return nil, errors.Errorf("read %d of expected %d padding bytes with err: %v", n, numBytes, err)
	}
	return padding{binary: buf}, nil
}
func parseBinaryPadding ( lengthByte byte , r io . Reader ) ( Value , error ) { if lengthByte == 0 { return padding { } , nil } numBytes , errLength := determineLength16 ( lengthByte , r ) if errLength != nil { return nil , errors . WithMessage ( errLength , " " ) } buf := make ( [ ] byte , numBytes ) if n , err := r . Read ( buf ) ; err != nil || n != int ( numBytes ) { return nil , errors . Errorf ( " " , n , numBytes , err ) } return padding { binary : buf } , nil }
parseBinaryPadding returns a padding Value while consuming the padding
value number of bytes.
parseBinaryPadding returns a padding Value while consuming the padding value number of bytes .
// Special case the "zero" length padding since we don't read anything for it. // The zero is in quotes since the marker of this is itself a byte of padding.