本文整理汇总了C#中Profile.GetBytes方法的典型用法代码示例。如果您正苦于以下问题:C# Profile.GetBytes方法的具体用法?C# Profile.GetBytes怎么用?C# Profile.GetBytes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Profile
的用法示例。
在下文中一共展示了Profile.GetBytes方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetUserProfile
public void SetUserProfile(uint userId, Profile profile)
{
if (profile == null)
{
throw new NullReferenceException();
}
byte[] bytes = profile.GetBytes();
EmoEngine.errorHandler(EdkDll.EE_SetUserProfile(userId, bytes, (uint)bytes.Length));
}
示例2: engine_userAdded_event
void engine_userAdded_event(object sender, EmoEngineEventArgs e)
{
Debug.Log("User Added Event has occured");
/*
// enable data aquisition for this user
engine.DataAcquisitionEnable(userID, true);
// ask for up to 1 second of buffered data
engine.EE_DataSetBufferSizeInSec(1.0f);
*/
// I don't need to do profile handling myself.
EmoEngine.Instance.LoadUserProfile(userID, debugProfileDir);
profile = EmoEngine.Instance.GetUserProfile(userID);
profile.GetBytes();
}
示例3: SetUserProfile
/// <summary>
/// Loads an EmoEngine profile for the specified user.
/// </summary>
/// <param name="userId">user ID</param>
/// <param name="profile">user profile previously returned from EmoEngine.</param>
public void SetUserProfile(UInt32 userId, Profile profile)
{
if (profile == null)
{
throw new NullReferenceException();
}
byte[] profileBytes = profile.GetBytes();
errorHandler(EdkDll.EE_SetUserProfile(userId, profileBytes, (UInt32)profileBytes.Length));
}