◆ FreeMem()
internal void DiscordRpc.RichPresence.FreeMem |
( |
| ) |
|
|
inlineprivate |
◆ GetStruct()
◆ StrClampBytes()
static string DiscordRpc.RichPresence.StrClampBytes |
( |
string |
toclamp, |
|
|
int |
maxbytes |
|
) |
| |
|
inlinestaticprivate |
Clamp the string to the given byte length preserving null termination
- Parameters
-
toclamp | string to clamp |
maxbytes | max bytes the resulting string should have (including null termination) |
- Returns
- null terminated string with a byte length less or equal to maxbytes
◆ StrToPtr()
IntPtr DiscordRpc.RichPresence.StrToPtr |
( |
string |
input, |
|
|
int |
maxbytes |
|
) |
| |
|
inlineprivate |
Returns a pointer to a representation of the given string with a size of maxbytes
- Parameters
-
input | String to convert |
maxbytes | Max number of bytes to use |
- Returns
- Pointer to the UTF-8 representation of input
◆ StrToUtf8NullTerm()
static string DiscordRpc.RichPresence.StrToUtf8NullTerm |
( |
string |
toconv | ) |
|
|
inlinestaticprivate |
Convert string to UTF-8 and add null termination
- Parameters
-
- Returns
- UTF-8 representation of toconv with added null termination
◆ _buffers
readonly List<IntPtr> DiscordRpc.RichPresence._buffers = new List<IntPtr>(10) |
|
private |
◆ _presence
◆ details
string DiscordRpc.RichPresence.details |
◆ endTimestamp
long DiscordRpc.RichPresence.endTimestamp |
◆ instance
bool DiscordRpc.RichPresence.instance |
◆ joinSecret
string DiscordRpc.RichPresence.joinSecret |
◆ largeImageKey
string DiscordRpc.RichPresence.largeImageKey |
◆ largeImageText
string DiscordRpc.RichPresence.largeImageText |
◆ matchSecret
string DiscordRpc.RichPresence.matchSecret |
◆ partyId
string DiscordRpc.RichPresence.partyId |
◆ partyMax
int DiscordRpc.RichPresence.partyMax |
◆ partySize
int DiscordRpc.RichPresence.partySize |
◆ smallImageKey
string DiscordRpc.RichPresence.smallImageKey |
◆ smallImageText
string DiscordRpc.RichPresence.smallImageText |
◆ spectateSecret
string DiscordRpc.RichPresence.spectateSecret |
◆ startTimestamp
long DiscordRpc.RichPresence.startTimestamp |
◆ state
string DiscordRpc.RichPresence.state |
The documentation for this class was generated from the following file: