Developer Documentation
Our new developer documentation is now available. Please check it out!

UserData

public class UserData : IUserData

Odin UserData helper for marshal byte arrays

Constructors

NameDescription
UserData(String)Odin UserData with default encoding UTF8
UserData(String, Encoding)Odin UserData with custom encoding
UserData(Byte[])Odin UserData with default encoding UTF8
UserData(Byte[], Encoding)Odin UserData with custom encoding

Properties

NameDescription
EncodingDefault Encoding
BufferRaw UserData

Public Methods

NameDescription
CopyFromCopies data from memory to Buffer
IsEmptyIndicates whether data is null or empty
ContainsIndicates whether substring occurs
PatternAtIndicates whether two sequence are equal
CloneCreates a shallow copy of the Buffer
ToBytesUsed for converting Data on network level
ToStringString representation of Buffer based on the specified encoding