RetroArch
Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
DiscordRpc.RichPresence Class Reference
Collaboration diagram for DiscordRpc.RichPresence:
[legend]

Public Attributes

string state
 
string details
 
long startTimestamp
 
long endTimestamp
 
string largeImageKey
 
string largeImageText
 
string smallImageKey
 
string smallImageText
 
string partyId
 
int partySize
 
int partyMax
 
string matchSecret
 
string joinSecret
 
string spectateSecret
 
bool instance
 

Private Member Functions

internal RichPresenceStruct GetStruct ()
 Get the RichPresenceStruct reprensentation of this instance More...
 
IntPtr StrToPtr (string input, int maxbytes)
 Returns a pointer to a representation of the given string with a size of maxbytes More...
 
internal void FreeMem ()
 Free the allocated memory for conversion to RichPresenceStruct More...
 

Static Private Member Functions

static string StrToUtf8NullTerm (string toconv)
 Convert string to UTF-8 and add null termination More...
 
static string StrClampBytes (string toclamp, int maxbytes)
 Clamp the string to the given byte length preserving null termination More...
 

Private Attributes

RichPresenceStruct _presence
 
readonly List< IntPtr > _buffers = new List<IntPtr>(10)
 

Member Function Documentation

◆ FreeMem()

internal void DiscordRpc.RichPresence.FreeMem ( )
inlineprivate

Free the allocated memory for conversion to RichPresenceStruct

Here is the caller graph for this function:

◆ GetStruct()

internal RichPresenceStruct DiscordRpc.RichPresence.GetStruct ( )
inlineprivate

Get the RichPresenceStruct reprensentation of this instance

Returns
RichPresenceStruct reprensentation of this instance
Here is the call graph for this function:
Here is the caller graph for this function:

◆ StrClampBytes()

static string DiscordRpc.RichPresence.StrClampBytes ( string  toclamp,
int  maxbytes 
)
inlinestaticprivate

Clamp the string to the given byte length preserving null termination

Parameters
toclampstring to clamp
maxbytesmax bytes the resulting string should have (including null termination)
Returns
null terminated string with a byte length less or equal to maxbytes
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
inputString to convert
maxbytesMax number of bytes to use
Returns
Pointer to the UTF-8 representation of input
Here is the call graph for this function:
Here is the caller graph for this function:

◆ StrToUtf8NullTerm()

static string DiscordRpc.RichPresence.StrToUtf8NullTerm ( string  toconv)
inlinestaticprivate

Convert string to UTF-8 and add null termination

Parameters
toconvstring to convert
Returns
UTF-8 representation of toconv with added null termination
Here is the caller graph for this function:

Member Data Documentation

◆ _buffers

readonly List<IntPtr> DiscordRpc.RichPresence._buffers = new List<IntPtr>(10)
private

◆ _presence

RichPresenceStruct DiscordRpc.RichPresence._presence
private

◆ 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: