package pac

import (
	

	
)

// ClientInfo implements https://msdn.microsoft.com/en-us/library/cc237951.aspx
type ClientInfo struct {
	ClientID   mstypes.FileTime // A FILETIME structure in little-endian format that contains the Kerberos initial ticket-granting ticket TGT authentication time
	NameLength uint16           // An unsigned 16-bit integer in little-endian format that specifies the length, in bytes, of the Name field.
	Name       string           // An array of 16-bit Unicode characters in little-endian format that contains the client's account name.
}

// Unmarshal bytes into the ClientInfo struct
func ( *ClientInfo) ( []byte) ( error) {
	//The PAC_CLIENT_INFO structure is a simple structure that is not NDR-encoded.
	 := mstypes.NewReader(bytes.NewReader())

	.ClientID,  = .FileTime()
	if  != nil {
		return
	}
	.NameLength,  = .Uint16()
	if  != nil {
		return
	}
	.Name,  = .UTF16String(int(.NameLength))
	return
}