|
Twitch SDK (Internal)
|
JSON (JavaScript Object Notation). More...
Namespaces | |
| ads | |
| assertion | |
| binding | |
| broadcast | |
| chat | |
| experiment | |
| GfxDeviceEventType | |
| json | |
| pubsub | |
| social | |
| trace | |
| tracking | |
| xml | |
Typedefs | |
| template<typename ContextType , typename InputBufferFormat , typename OutputBufferFormat , size_t SelectedChannelIndex> | |
| using | BuildOperatorChain = typename OperatorChainBuilder< ContextType, InputBufferFormat, OutputBufferFormat, SelectedChannelIndex >::Type |
| template<typename ContextType , typename InputBufferFormat , typename OutputBufferFormat > | |
| using | BuildOperatorChainTuple = typename OperatorChainTupleBuilder< ContextType, InputBufferFormat, OutputBufferFormat, InputBufferFormat::ChannelCount >::Type |
| template<typename Arg > | |
| using | VoidType = typename MakeVoid< Arg >::Type |
| typedef std::function< bool(uint statusCode, const std::map< std::string, std::string > &headers, void *userData)> | HttpRequestHeadersCallback |
| typedef std::function< void(uint statusCode, const std::vector< char > &body, void *userData)> | HttpRequestCallback |
| typedef std::function< void()> | ThreadProc |
| using | UserId = uint32_t |
| using | ChannelId = uint32_t |
| using | GameId = uint32_t |
| using | Timestamp = uint32_t |
| using | Color = uint32_t |
| using | BroadcastId = uint32_t |
| typedef const char *(* | ErrorToStringFunction) (TTV_ErrorCode ec) |
| typedef void(* | ErrorCodeValueFunction) (std::vector< EnumValue > &result) |
| typedef void *(* | TTV_AllocCallback) (size_t size, size_t alignment) |
| typedef void(* | TTV_FreeCallback) (void *ptr) |
Functions | |
| template<typename InputBufferFormat , typename OutputBufferFormat , typename ContextType > | |
| auto | MakeAudioConvertPipeline (ContextType &context) |
| SampleRange | IntersectSampleRanges (SampleRange firstRange, SampleRange secondRange) |
| SampleRange | ExtendSampleRange (SampleRange range, SampleRange extension) |
| template<typename IntegralType > | |
| constexpr size_t | BisectRange () |
| template<typename SampleType > | |
| std::enable_if_t< std::is_floating_point< SampleType >::value, SampleType > | ClampAndCastSample (double input) |
| template<typename SampleType > | |
| std::enable_if_t< std::is_integral< SampleType >::value, SampleType > | ClampAndCastSample (double input) |
| TTV_ErrorCode | TTV_CSharp_Broadcast_FreeAuthToken (const TTV_AuthToken *authToken) |
| TTV_ErrorCode | TTV_CSharp_Broadcast_FreeIngestList (TTV_IngestList *ingestList) |
| TTV_ErrorCode | TTV_CSharp_Broadcast_FreeChannelInfo (const TTV_ChannelInfo *channelInfo) |
| TTV_ErrorCode | TTV_CSharp_Broadcast_FreeStreamInfo (const TTV_StreamInfo *streamInfo) |
| TTV_ErrorCode | TTV_CSharp_Broadcast_FreeGameNameList (const TTV_GameInfoList *gameList) |
| TTV_ErrorCode | TTV_CSharp_Broadcast_GetStreamTime (uint64_t *timeMs) |
| TTV_ErrorCode | TTV_CSharp_Broadcast_FreeUserInfo (const TTV_UserInfo___ *userInfo) |
| TTV_ErrorCode | TTV_CSharp_Broadcast_FreeArchivingState (const TTV_ArchivingState *state) |
| bool | LookupOpenAlCaptureFunctions () |
| ALvoid | alcOutputCapturerPrepareProc (ALCuint frequency, ALCenum format, ALCsizei maxsamplecount) |
| ALvoid | alcOutputCapturerStartProc () |
| ALvoid | alcOutputCapturerStopProc () |
| ALint | alcOutputCapturerAvailableSamplesProc () |
| ALvoid | alcOutputCapturerSamplesProc (ALCvoid *buffer, ALCsizei samplecount) |
| std::string | Base64Encode (unsigned char const *, unsigned int len) |
| std::string | Base64Decode (std::string const &s) |
| TTV_ErrorCode | SetClientId (const std::string &clientId) |
| TTV_ErrorCode | GetClientId (std::string &clientId) |
| template<typename T > | |
| void | AddFlag (T &x, T flag) |
| template<typename T > | |
| void | RemoveFlag (T &x, T flag) |
| template<typename T > | |
| void | SetFlag (T &x, T flag, bool value) |
| template<typename T , typename F > | |
| bool | HasFlag (T &x, F flag) |
| void | SetEventTracker (const std::shared_ptr< IEventTracker > &eventTracker) |
| std::shared_ptr< IEventTracker > | GetEventTracker () |
| TTV_ErrorCode | TrackEvent (const std::string &eventName, const std::map< std::string, TrackingValue > &properties) |
| void | SetHttpRequest (const std::shared_ptr< HttpRequest > &http) |
| std::shared_ptr< HttpRequest > | GetHttpRequest () |
| TTV_ErrorCode | HttpThreadInit () |
| TTV_ErrorCode | SendHttpRequest (const std::string &url, const std::vector< HttpParam > &requestHeaders, const uint8_t *requestBody, size_t requestBodySize, HttpRequestType httpReqType, uint timeOutInSecs, HttpRequestHeadersCallback headersCallback, HttpRequestCallback responseCallback, void *userData) |
| TTV_ErrorCode | SendHttpRequest (const std::string &url, const std::vector< HttpParam > &requestHeaders, const uint8_t *requestBody, size_t requestBodySize, HttpRequestType httpReqType, uint timeOutInSecs, uint numRetries, HttpRequestHeadersCallback headersCallback, HttpRequestCallback responseCallback, void *userData) |
| TTV_ErrorCode | SendHttpRequest (const std::string &url, const std::vector< HttpParam > &urlParams, const std::vector< HttpParam > &requestHeaders, const uint8_t *requestBody, size_t requestBodySize, HttpRequestType httpReqType, uint timeOutInSecs, uint numRetries, HttpRequestHeadersCallback headersCallback, HttpRequestCallback responseCallback, void *userData) |
| TTV_ErrorCode | HttpThreadShutdown () |
| bool | IsTwitchEndpoint (const std::string &url) |
| std::string | BuildUrlEncodedRequestParams (const std::vector< std::pair< std::string, std::string >> &requestParams) |
| std::string | BuildUrlEncodedRequestParams (const std::vector< HttpParam > &requestParams) |
| std::string | BuildUrlEncodedRequestParams (const std::map< std::string, std::string > &requestParams) |
| std::string | BuildHttpHeader (const std::vector< ttv::HttpParam > &headerParams) |
| bool | ContainsHttpParameter (const std::vector< HttpParam > &headers, const std::string &name) |
| void | UrlEncode (const std::string &inputString, std::stringstream &outputStream) |
| std::string | UrlEncode (const std::string &inputString) |
| void | UrlDecode (const std::string &inputString, std::stringstream &outputStream) |
| void | UrlDecode (const std::string &input, std::string &result) |
| std::string | UrlDecode (const std::string &inputString) |
| TTV_ErrorCode | SplitHttpParameters (const std::string ¶meterString, std::vector< std::pair< std::string, std::string >> &result) |
| TTV_ErrorCode | SplitHttpParameters (const std::string ¶meterString, std::map< std::string, std::string > &result) |
| TTV_ErrorCode | GenerateSslVerificationHosts (const std::string &originalHost, std::vector< std::string > &result) |
| bool | IsHostAnIpAddress (const std::string &hostName) |
| bool | ParseString (const ttv::json::Value &root, const char *key, std::string &result) |
| bool | ParseString (const ttv::json::Value &root, const std::string &key, std::string &result, const char *defaultValue) |
| bool | ParseBool (const ttv::json::Value &root, const char *key, bool &result) |
| bool | ParseBool (const ttv::json::Value &root, const char *key, bool &result, bool defaultValue) |
| bool | ParseUInt (const ttv::json::Value &root, const char *key, uint64_t &result) |
| bool | ParseUInt (const ttv::json::Value &root, const char *key, uint32_t &result) |
| bool | ParseUInt (const ttv::json::Value &root, const char *key, uint64_t &result, uint64_t defaultValue) |
| bool | ParseInt (const ttv::json::Value &root, const char *key, int64_t &result) |
| bool | ParseInt (const ttv::json::Value &root, const char *key, int64_t &result, int64_t defaultValue) |
| bool | ParseDouble (const ttv::json::Value &root, const char *key, double &result) |
| bool | ParseDouble (const ttv::json::Value &root, const char *key, double &result, double defaultValue) |
| bool | ParseDocument (const std::string &body, ttv::json::Value &result) |
| bool | ParseDocument (const char *begin, const char *end, ttv::json::Value &result) |
| bool | ParseDocument (const uint8_t *begin, const uint8_t *end, ttv::json::Value &result) |
| bool | ParseDocument (const std::vector< char > &body, ttv::json::Value &result) |
| bool | JsonArrayToVector (const ttv::json::Value &jArray, std::vector< float > &result) |
| bool | JsonArrayToVector (const ttv::json::Value &jArray, std::vector< std::string > &result) |
| bool | ParseUserId (const json::Value &jId, UserId &result) |
| bool | ParseChannelId (const json::Value &jId, ChannelId &result) |
| bool | ParseGameId (const json::Value &jId, GameId &result) |
| bool | ParseTimestamp (const json::Value &jTimestamp, Timestamp &result) |
| bool | ParseTimestamp (const ttv::json::Value &root, const char *key, Timestamp &result) |
| bool | ParseColor (const std::string &str, Color &result) |
| bool | ParseColor (const ttv::json::Value &root, const char *key, Color &result) |
| bool | ParseColor (const ttv::json::Value &root, const char *key, Color &result, Color defaultValue) |
| bool | GenerateColorString (Color color, std::string &colorString) |
| bool | ParseUInt32 (const json::Value &jValue, uint32_t &result) |
| bool | ParseFloat (const json::Value &jValue, float &result) |
| bool | ParseChannelInfo (const ttv::json::Value &root, ChannelInfo &model) |
| bool | ParseStreamInfo (const ttv::json::Value &root, StreamInfo &model) |
| void * | AlignedAlloc (size_t size, size_t alignment) |
| void | AlignedFree (void *p) |
| TTV_ErrorCode | SetMemoryAllocationCallbacks (TTV_AllocCallback allocCallback, TTV_FreeCallback freeCallback) |
| void | ShutdownModulesSync (const std::vector< std::shared_ptr< ttv::IModule >> &modules) |
| void | SetMutexFactory (std::shared_ptr< IMutexFactory > factory) |
| TTV_ErrorCode | CreateMutex (std::shared_ptr< IMutex > &result) |
| TTV_ErrorCode | CreateConditionMutex (std::shared_ptr< IConditionMutex > &result) |
| TTV_ErrorCode | InitializeSocketLibrary () |
| TTV_ErrorCode | ShutdownSocketLibrary () |
| TTV_ErrorCode | RegisterSocketFactory (const std::shared_ptr< ISocketFactory > &factory) |
| TTV_ErrorCode | UnregisterSocketFactory (const std::shared_ptr< ISocketFactory > &factory) |
| TTV_ErrorCode | RegisterWebSocketFactory (const std::shared_ptr< IWebSocketFactory > &factory) |
| TTV_ErrorCode | UnregisterWebSocketFactory (const std::shared_ptr< IWebSocketFactory > &factory) |
| TTV_ErrorCode | IsSocketProtocolSupported (const std::string &protocol) |
| TTV_ErrorCode | IsWebSocketProtocolSupported (const std::string &protocol) |
| TTV_ErrorCode | CreateSocket (const std::string &uri, std::shared_ptr< ISocket > &result) |
| TTV_ErrorCode | CreateWebSocket (const std::string &uri, std::shared_ptr< IWebSocket > &result) |
| bool | IsValidChannelName (const std::string &channelName) |
| bool | IsValidUserName (const std::string &userName) |
| bool | IsValidOAuthToken (const std::string &oauthToken) |
| int | IsWhitespace (int ch) |
| std::string | ToLowerCase (const std::string &str) |
| void | Trim (std::string &str) |
| void | Split (const std::string &str, std::vector< std::string > &result, char sep, bool includeEmpty) |
| void | Split (const std::string &str, const std::string &delim, std::vector< std::string > &result) |
| bool | StartsWith (const std::string &str, const std::string &prefix) |
| bool | EndsWith (const std::string &str, const std::string &suffix) |
| bool | RFC3339TimeToUnixTimestamp (const std::string &str, Timestamp &result) |
| std::string | UnixTimestampToRFC3339String (Timestamp timestamp) |
| void | SafeStringCopy (char *dst, const char *src, size_t maxLen) |
| std::string | GetGuid () |
| std::vector< std::string > | ParseArguments (std::string args) |
| bool | ParseNum (const std::string &str, int &out) |
| bool | ParseNum (const std::string &str, signed char &out) |
| bool | ParseNum (const std::string &str, short int &out) |
| bool | ParseNum (const std::string &str, long int &out) |
| bool | ParseNum (const std::string &str, long long int &out) |
| bool | ParseNum (const std::string &str, unsigned int &out) |
| bool | ParseNum (const std::string &str, unsigned char &out) |
| bool | ParseNum (const std::string &str, unsigned short int &out) |
| bool | ParseNum (const std::string &str, unsigned long int &out) |
| bool | ParseNum (const std::string &str, unsigned long long int &out) |
| bool | ParseNum (const std::string &str, float &out) |
| bool | ParseNum (const std::string &str, double &out) |
| bool | ParseNum (const std::string &str, long double &out) |
| bool | ParseNum (const std::string &str, char &out) |
| void | SetSystemClock (const std::shared_ptr< ISystemClock > &clock) |
| std::shared_ptr< ISystemClock > | GetSystemClock () |
| uint64_t | GetSystemClockFrequency () |
| uint64_t | GetSystemClockTime () |
| uint64_t | GetSystemTimeMilliseconds () |
| uint64_t | SystemTimeToMs (uint64_t sysTime) |
| uint64_t | MsToSystemTime (uint64_t msTime) |
| Timestamp | GetCurrentTimeAsUnixTimestamp () |
| TTV_ErrorCode | SetThreadFactory (std::shared_ptr< IThreadFactory > factory) |
| TTV_ErrorCode | SetThreadApi (std::shared_ptr< IThreadApi > api) |
| void | Sleep (uint64_t milliseconds) |
| TTV_ErrorCode | CreateThread (ThreadProc threadProc, const std::string &name, std::shared_ptr< IThread > &result) |
| void | SetThreadSyncFactory (std::shared_ptr< IThreadSyncFactory > factory) |
| TTV_ErrorCode | CreateThreadSync (std::shared_ptr< IThreadSync > &result) |
| uint64_t | JitterTime (uint64_t baseMs, uint64_t width) |
| void | SetTracer (std::shared_ptr< ITracer > tracer) |
| void | RegisterErrorToStringFunction (ErrorToStringFunction func) |
| void | UnregisterErrorToStringFunction (ErrorToStringFunction func) |
| void | RegisterErrorCodeValueFunction (ErrorCodeValueFunction func) |
| void | UnregisterErrorCodeValueFunction (ErrorCodeValueFunction func) |
| const char * | ErrorToString (TTV_ErrorCode ec) |
| const char * | CoreErrorToString (TTV_ErrorCode ec) |
| void | GetCoreErrorCodeValues (std::vector< EnumValue > &result) |
| void | GetAllErrorCodes (std::vector< EnumValue > &result) |
| bool | IsUtf8StartByte (char b) |
| bool | IsUtf8SequenceByte (char b) |
| const char * | AdvanceToNextUtf8Character (const char *cur, int &sequenceLength) |
| int | CountUtf8Bytes (const char *start, int numCharacters) |
| bool | IsValidUtf8 (const char *str, bool &hasFourByteChars) |
| TTV_ErrorCode | SetVersionString (const std::string &clientId) |
| TTV_ErrorCode | GetVersionString (std::string &clientId) |
Variables | |
| constexpr double | kPi = 3.14159265358979323846 |
| ManagedBroadcastAPIListener | gManagedBroadcastAPIListener |
| ManagedStatsListener | gManagedStatsListener |
| bool | gBroadcastInitialized |
JSON (JavaScript Object Notation).
| struct ttv::AudioConvertContext |
| Class Members | ||
|---|---|---|
|
typedef FilterOptionsProvider < Options > |
FilterOptions | |
|
typedef AudioConvertOptionsDefaulter < PassedOptions > |
Options | |
| struct ttv::MakeVoid |
| struct ttv::OperatorChainBuilder |
This class builds a chain of operators to convert audio from a given input buffer format to an output buffer format.
| ContextType | The type of AudioConvertContext for the operators to use. See audioconvertcontext.h |
| InputBufferFormat | The input buffer format. See BufferFormat in dsputilities.h |
| OutputBufferFormat | The output buffer format. See BufferFormat in dsputilities.h |
| SelectedChannelIndex | Which input audio channel this chain will process. |
| Class Members | ||
|---|---|---|
|
typedef conditional_t < is_floating_point < OutputSampleType >::value, ChangeFloatingPointDepthWrapper < Input, OutputSampleType > , MatchSignedness < ConvertToIntegralTypeWrapper < Input, MakeSignedIfIntegral < OutputSampleType > >, OutputSampleType > > |
ConvertFloatingToSampleType | |
|
typedef conditional_t < SampleRate==SampleRate, MatchSampleType< Input, typename SampleType > , ConvertSampleRateAndType < Input, Output > > |
ConvertFormat | |
|
typedef conditional_t< sizeof(typename SampleType)< sizeof(OutputSampleType), IncreaseBitDepthWrapper< Input, OutputSampleType > , DecreaseBitDepthWrapper < Input, OutputSampleType > > |
ConvertIntegralDepth | |
|
typedef conditional_t < is_floating_point < OutputSampleType >::value, ConvertToFloatingTypeWrapper < MatchSignedness< Input, OutputSampleType > , OutputSampleType > , MatchIntegralDepth < MatchSignedness< Input, OutputSampleType > , OutputSampleType > > |
ConvertIntegralToSampleType | |
|
typedef conditional_t<(sizeof(typename SampleType)< sizeof(typename SampleType)), MatchSignedness < ResampleWrapper < MatchSampleType< Input, MakeSignedIfIntegral< typename SampleType > >, SampleRate > , typename SampleType > , MatchSampleType < ResampleWrapper< MakeSigned < Input >, SampleRate > , typename SampleType > > |
ConvertSampleRateAndType | |
|
typedef conditional_t < is_floating_point< typename SampleType >::value, ConvertFloatingToSampleType < Input, OutputSampleType > , ConvertIntegralToSampleType < Input, OutputSampleType > > |
ConvertSampleType | |
|
typedef conditional_t < is_signed< typename SampleType >::value, ConvertToUnsignedWrapper < Input > , ConvertToSignedWrapper < Input > > |
FlipSignedness | |
|
typedef conditional_t < is_unsigned< typename SampleType >::value, ConvertToSignedWrapper< Input > , Input > |
MakeSigned | |
|
typedef typename MakeSignedIfIntegralSelector < ScalarType >::Type |
MakeSignedIfIntegral | |
|
typedef conditional_t< sizeof(typename SampleType)==sizeof(OutputSampleType), Input, ConvertIntegralDepth < Input, OutputSampleType > > |
MatchIntegralDepth | |
|
typedef conditional_t< is_same < typename SampleType, OutputSampleType >::value, Input, ConvertSampleType < Input, OutputSampleType > > |
MatchSampleType | |
|
typedef conditional_t < is_signed< typename SampleType >::value==is_signed < OutputSampleType >::value, Input, FlipSignedness< Input > > |
MatchSignedness | |
| typedef typename template Unwrap<> | Type | |
|
typedef ConvertFormat < InputSourceWrapper, OutputBufferFormat > |
WrappedType | |
| struct ttv::OperatorChainTupleBuilder |
| Class Members | ||
|---|---|---|
|
typedef BuildOperatorChain < ContextType, InputBufferFormat, OutputBufferFormat, RemainingChannelCount - 1 > |
AppendedOperatorChain | |
| Type | ||
| struct ttv::OperatorChainTupleBuilder< ContextType, InputBufferFormat, OutputBufferFormat, 0, CurrentChannels... > |
| struct ttv::PreviewImages |
PreviewImages - URLs for preview images (of different sizes).
| Class Members | ||
|---|---|---|
| string | largeUrl | |
| string | mediumUrl | |
| string | smallUrl | |
| string | templateUrl | |
| struct ttv::ProfileImage |
ProfileImage - Info about a new profile image.
| Class Members | ||
|---|---|---|
| string | format | The filetype/format of the profile image. |
| uint32_t | height | Height of the profile image. |
| string | url | The URL of the profile image. |
| uint32_t | width | Width of the profile image. |
| using ttv::BroadcastId = typedef uint32_t |
| using ttv::BuildOperatorChain = typedef typename OperatorChainBuilder<ContextType, InputBufferFormat, OutputBufferFormat, SelectedChannelIndex>::Type |
| using ttv::BuildOperatorChainTuple = typedef typename OperatorChainTupleBuilder<ContextType, InputBufferFormat, OutputBufferFormat, InputBufferFormat::ChannelCount>::Type |
| using ttv::ChannelId = typedef uint32_t |
| using ttv::Color = typedef uint32_t |
| typedef void(* ttv::ErrorCodeValueFunction) (std::vector< EnumValue > &result) |
Function signature for getting available error codes.
| typedef const char*(* ttv::ErrorToStringFunction) (TTV_ErrorCode ec) |
Function signature for getting a human readable string value for an error code.
| using ttv::GameId = typedef uint32_t |
| typedef std::function<void (uint statusCode, const std::vector<char>& body, void* userData)> ttv::HttpRequestCallback |
| typedef std::function<bool (uint statusCode, const std::map<std::string, std::string>& headers, void* userData)> ttv::HttpRequestHeadersCallback |
| typedef std::function<void()> ttv::ThreadProc |
| using ttv::Timestamp = typedef uint32_t |
| typedef void*(* ttv::TTV_AllocCallback) (size_t size, size_t alignment) |
Signature for memory allocating.
| typedef void(* ttv::TTV_FreeCallback) (void *ptr) |
Signature for freeing a memory allocation.
| using ttv::UserId = typedef uint32_t |
| using ttv::VoidType = typedef typename MakeVoid<Arg>::Type |
|
strong |
|
strong |
|
strong |
The following is the concept for the structure the user can provide containing the configuration options for audio conversion. Any non-specified options will be filled by default values (see DefaultAudioConvertOptions below).
struct AudioConvertOptions { // The ditherer to use when quantizing the bit depth of data. See ditherers.h for the available // ditherers. using Ditherer = ...;
// The filter cutoff to use when downsampling audio, represented as the ratio between the desired // cutoff frequency and the output sample rate. The Nyquist frequency of a digital signal (that is, // the highest frequency that can be represented at the signal's sample rate without aliasing) is // is 0.5 times the sample rate. Since the low-pass filter's frequency response function is // slightly tapered rather than a perfect rectangular function, this is usually set slightly below // 0.5. static constexpr double FilterCutoff = ...;
// The type of low-pass filter to use when resampling. See descriptions in FilterTypeEnum below. static constexpr FilterTypeEnum FilterType = ...;
// The beta factor to use when using the Kaiser-Bessel Window function. static constexpr double KaiserBeta = ...;
// The width of the window when using a finite impulse response low-pass filter, in input samples. static constexpr size_t FilterTapCount = ...; } The type of low pass filter to use when resampling audio.
| Enumerator | |
|---|---|
| Kaiser | Finite impulse response filter with a Kaiser-Bessel window function. |
| enum ttv::HttpRequestType |
|
strong |
|
strong |
|
strong |
|
strong |
| void ttv::AddFlag | ( | T & | x, |
| T | flag | ||
| ) |
|
inline |
| ALint ttv::alcOutputCapturerAvailableSamplesProc | ( | ) |
| ALvoid ttv::alcOutputCapturerPrepareProc | ( | ALCuint | frequency, |
| ALCenum | format, | ||
| ALCsizei | maxsamplecount | ||
| ) |
| ALvoid ttv::alcOutputCapturerSamplesProc | ( | ALCvoid * | buffer, |
| ALCsizei | samplecount | ||
| ) |
| ALvoid ttv::alcOutputCapturerStartProc | ( | ) |
| ALvoid ttv::alcOutputCapturerStopProc | ( | ) |
| void* ttv::AlignedAlloc | ( | size_t | size, |
| size_t | alignment | ||
| ) |
Performs an aligned allocation using the registered allocator.
| void ttv::AlignedFree | ( | void * | p | ) |
Fres an allocation previously allocated via AlignedAlloc().
| std::string ttv::Base64Decode | ( | std::string const & | s | ) |
| std::string ttv::Base64Encode | ( | unsigned char const * | , |
| unsigned int | len | ||
| ) |
| constexpr size_t ttv::BisectRange | ( | ) |
This function takes an integral type and returns a value equal to half the cardinality of that type, basically 2^(number of bits of the type) / 2. This is useful in a few DSP situations. In particular, it represents the centerpoint of a signal for an unsigned type. It also represents the distance from the centerpoint to the maximum value of the signal for both signed and unsigned types.
| std::string ttv::BuildHttpHeader | ( | const std::vector< ttv::HttpParam > & | headerParams | ) |
| std::string ttv::BuildUrlEncodedRequestParams | ( | const std::vector< std::pair< std::string, std::string >> & | requestParams | ) |
| std::string ttv::BuildUrlEncodedRequestParams | ( | const std::vector< HttpParam > & | requestParams | ) |
| std::string ttv::BuildUrlEncodedRequestParams | ( | const std::map< std::string, std::string > & | requestParams | ) |
| std::enable_if_t<std::is_floating_point<SampleType>::value, SampleType> ttv::ClampAndCastSample | ( | double | input | ) |
Converts a double precision floating point value to the specified type and clamps it to the expected bounds. This overload is for floating point types, which should have values between -1.0 and 1.0.
| SampleType | The sample type to convert to. |
| std::enable_if_t<std::is_integral<SampleType>::value, SampleType> ttv::ClampAndCastSample | ( | double | input | ) |
Converts a double precision floating point value to the specified type and clamps it to the expected bounds. This overload is for integral point types, which should have values between their maximum and minimum representable values.
| SampleType | The sample type to convert to. |
| bool ttv::ContainsHttpParameter | ( | const std::vector< HttpParam > & | headers, |
| const std::string & | name | ||
| ) |
| const char* ttv::CoreErrorToString | ( | TTV_ErrorCode | ec | ) |
The error code string lookup for core. This is not normally used directly by clients. Use ttv::ErrorToString() instead.
|
inline |
| TTV_ErrorCode ttv::CreateConditionMutex | ( | std::shared_ptr< IConditionMutex > & | result | ) |
| TTV_ErrorCode ttv::CreateMutex | ( | std::shared_ptr< IMutex > & | result | ) |
| TTV_ErrorCode ttv::CreateSocket | ( | const std::string & | uri, |
| std::shared_ptr< ISocket > & | result | ||
| ) |
Attempts to create an ISocket instance that supports the given URI.
When creating a new ISocket the registered factories will be visited in order of newest to oldest registration until one is found that supports the requested protocol.
| [in] | uri | The full uri to create the socket for. |
| [out] | result | The resulting ISocket instance if it was able to be created. |
| TTV_ErrorCode ttv::CreateThread | ( | ThreadProc | threadProc, |
| const std::string & | name, | ||
| std::shared_ptr< IThread > & | result | ||
| ) |
| TTV_ErrorCode ttv::CreateThreadSync | ( | std::shared_ptr< IThreadSync > & | result | ) |
| TTV_ErrorCode ttv::CreateWebSocket | ( | const std::string & | uri, |
| std::shared_ptr< IWebSocket > & | result | ||
| ) |
Attempts to create an IWebSocket instance that supports the given URI.
When creating a new IWebSocket the registered factories will be visited in order of newest to oldest registration until one is found that supports the requested protocol.
| [in] | uri | The full uri to create the socket for. |
| [out] | result | The resulting IWebSocket instance if it was able to be created. |
| bool ttv::EndsWith | ( | const std::string & | str, |
| const std::string & | suffix | ||
| ) |
| const char* ttv::ErrorToString | ( | TTV_ErrorCode | ec | ) |
The central error code string lookup function to be used by clients which want a human readable string from a generic error code.
| SampleRange ttv::ExtendSampleRange | ( | SampleRange | range, |
| SampleRange | extension | ||
| ) |
Performs a union of the sample ranges if and only if the ranges overlap or are contiguous. If they are not, just returns the first range.
| bool ttv::GenerateColorString | ( | Color | color, |
| std::string & | colorString | ||
| ) |
| TTV_ErrorCode ttv::GenerateSslVerificationHosts | ( | const std::string & | originalHost, |
| std::vector< std::string > & | result | ||
| ) |
Generate all possible hosts (i.e. by removing subdomains) for a given hostname. Example: chat.twitch.tv -> {chat.twitch.tv, *.twitch.tv, twitch.tv}.
| void ttv::GetAllErrorCodes | ( | std::vector< EnumValue > & | result | ) |
| TTV_ErrorCode ttv::GetClientId | ( | std::string & | clientId | ) |
Retrieves the currently set client-id.
| void ttv::GetCoreErrorCodeValues | ( | std::vector< EnumValue > & | result | ) |
| Timestamp ttv::GetCurrentTimeAsUnixTimestamp | ( | ) |
Gets the absolute current time as seconds since epoch.
| std::shared_ptr<IEventTracker> ttv::GetEventTracker | ( | ) |
Gets the currently registered event handler.
| std::string ttv::GetGuid | ( | ) |
Generates a 32 character random string.
| std::shared_ptr<HttpRequest> ttv::GetHttpRequest | ( | ) |
Retrieves the currently configured HttpRequest instance.
| std::shared_ptr<ISystemClock> ttv::GetSystemClock | ( | ) |
Retrieves the registered global system clock implementation for the entire SDK.
| uint64_t ttv::GetSystemClockFrequency | ( | ) |
Retrieves the reported value of ISystemClock::GetFrequency() from the registered system clock.
| uint64_t ttv::GetSystemClockTime | ( | ) |
Retrieves the reported value of ISystemClock::GetTime() from the registered system clock. The reported time may not have a consitent base value so it is only useful for relative measurements.
| uint64_t ttv::GetSystemTimeMilliseconds | ( | ) |
Retrieves the current system time in milliseconds. The reported time may not have a consitent base value so it is only useful for relative measurements.
| TTV_ErrorCode ttv::GetVersionString | ( | std::string & | clientId | ) |
Retrieves the version string for the sdk.
| bool ttv::HasFlag | ( | T & | x, |
| F | flag | ||
| ) |
| TTV_ErrorCode ttv::HttpThreadInit | ( | ) |
| TTV_ErrorCode ttv::HttpThreadShutdown | ( | ) |
| TTV_ErrorCode ttv::InitializeSocketLibrary | ( | ) |
Initializes the socket library subsystem. This must be done once before any socket factories are registered.
| SampleRange ttv::IntersectSampleRanges | ( | SampleRange | firstRange, |
| SampleRange | secondRange | ||
| ) |
Returns the intersection of two sample ranges. If the ranges do not intersect, returns {0, 0}
| bool ttv::IsHostAnIpAddress | ( | const std::string & | hostName | ) |
Returns whether or not a given hostname is in the format of a 32-bit IPv4 address. Checks for dotted decimal representation (a.b.c.d). Does not check if the IP address is valid (will still return true even if numbers > 255).
| TTV_ErrorCode ttv::IsSocketProtocolSupported | ( | const std::string & | protocol | ) |
Determines if there is a registered ISocketFactory that supports the named protocol.
| [in] | protocol | The protocol to check. It is the short protocol name, such as "http". |
| bool ttv::IsTwitchEndpoint | ( | const std::string & | url | ) |
Determines if the given url represents a Twitch endpoint.
|
inline |
|
inline |
| bool ttv::IsValidChannelName | ( | const std::string & | channelName | ) |
| bool ttv::IsValidOAuthToken | ( | const std::string & | oauthToken | ) |
| bool ttv::IsValidUserName | ( | const std::string & | userName | ) |
|
inline |
This function validates if the input string is in valid UTF-8 format
References:
| [in] | str | The string (of char* type) to validate |
| [out] | hasFourByteChars | Returns if the string has any four byte characters |
Valid UTF-8 Code Units: 0b00000000-0b01111111 (0x00-0x7F): Single-byte code unit (ASCII) 0b10000000-0b10111111 (0x80-0xBF): Continuation byte code unit 0b11000010-0b11011111 (0xC2-0xDF): Two byte starting code unit 0b11100000-0b11101111 (0xE0-0xEF): Three byte starting code unit Some continutation code units after 0xE0-0xEF are not valid For 0b11100000 (0xE0): Second byte must be 0b10100000-0b10111111 (0xA0-0xBF) For 0b11101101 (0xED): Second byte must be 0b10000000-0b10011111 (0x80-0x9F) 0b11110000-0b11110100 (0xF0-0xF4): Four byte starting code unit Some continuation code units after 0xF0-0xF4 are not valid For 0b11110000 (0xF0): Second byte must be 0b10010000-0b10111111 (0x90-0xBF) For 0b11110100 (0xF4): Second byte must be 0b10000000-0b10001111 (0x80-0x8F)
Invalid UTF-8 Code Units: 0b11000000-0b11000001 (0xC0-0xC1) 0b11110101-0b11111111 (0xF5-0xFF)
| TTV_ErrorCode ttv::IsWebSocketProtocolSupported | ( | const std::string & | protocol | ) |
Determines if there is a registered IWebSocketFactory that supports the named protocol.
| [in] | protocol | The protocol to check. It is the short protocol name, such as "ws". |
| int ttv::IsWhitespace | ( | int | ch | ) |
| uint64_t ttv::JitterTime | ( | uint64_t | baseMs, |
| uint64_t | width | ||
| ) |
| bool ttv::JsonArrayToVector | ( | const ttv::json::Value & | jArray, |
| std::vector< float > & | result | ||
| ) |
| bool ttv::JsonArrayToVector | ( | const ttv::json::Value & | jArray, |
| std::vector< std::string > & | result | ||
| ) |
| bool ttv::LookupOpenAlCaptureFunctions | ( | ) |
| auto ttv::MakeAudioConvertPipeline | ( | ContextType & | context | ) |
| uint64_t ttv::MsToSystemTime | ( | uint64_t | msTime | ) |
Converts milliseconds to system time.
| std::vector<std::string> ttv::ParseArguments | ( | std::string | args | ) |
| bool ttv::ParseBool | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| bool & | result | ||
| ) |
Parse a bool from the given Json object. Returns false if the object does not contain the given key.
| bool ttv::ParseBool | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| bool & | result, | ||
| bool | defaultValue | ||
| ) |
Parse a bool from the given Json object. In case of errors or a null value, assigns 'defaultValue' to 'result'. Returns true if the value is null. Returns false if the value is missing or not a string.
| bool ttv::ParseChannelId | ( | const json::Value & | jId, |
| ChannelId & | result | ||
| ) |
| bool ttv::ParseChannelInfo | ( | const ttv::json::Value & | root, |
| ChannelInfo & | model | ||
| ) |
Parses the standard user object returned from Kraken.
| bool ttv::ParseColor | ( | const std::string & | str, |
| Color & | result | ||
| ) |
| bool ttv::ParseColor | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| Color & | result | ||
| ) |
| bool ttv::ParseColor | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| Color & | result, | ||
| Color | defaultValue | ||
| ) |
| bool ttv::ParseDocument | ( | const std::string & | body, |
| ttv::json::Value & | result | ||
| ) |
Attempts to parse the given string as json and will return the parsed document if possible.
| bool ttv::ParseDocument | ( | const char * | begin, |
| const char * | end, | ||
| ttv::json::Value & | result | ||
| ) |
Attempts to parse the given byte array as json and will return the parsed document if possible.
| bool ttv::ParseDocument | ( | const uint8_t * | begin, |
| const uint8_t * | end, | ||
| ttv::json::Value & | result | ||
| ) |
Attempts to parse the given byte array as json and will return the parsed document if possible.
| bool ttv::ParseDocument | ( | const std::vector< char > & | body, |
| ttv::json::Value & | result | ||
| ) |
Attempts to parse the given byte array as json and will return the parsed document if possible.
| bool ttv::ParseDouble | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| double & | result | ||
| ) |
Parse a Double from the given Json object. Returns false if the object does not contain the given key.
| bool ttv::ParseDouble | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| double & | result, | ||
| double | defaultValue | ||
| ) |
Parse a Double from the given Json object. In case of errors or a null value, assigns 'defaultValue' to 'result'. Returns true if the value is null. Returns false if the value is missing or not a string.
| bool ttv::ParseFloat | ( | const json::Value & | jValue, |
| float & | result | ||
| ) |
| bool ttv::ParseGameId | ( | const json::Value & | jId, |
| GameId & | result | ||
| ) |
| bool ttv::ParseInt | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| int64_t & | result | ||
| ) |
Parse a Int64_t from the given Json object. Returns false if the object does not contain the given key.
| bool ttv::ParseInt | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| int64_t & | result, | ||
| int64_t | defaultValue | ||
| ) |
Parse a Int64_t from the given Json object. In case of errors or a null value, assigns 'defaultValue' to 'result'. Returns true if the value is null. Returns false if the value is missing or not a string.
| bool ttv::ParseNum | ( | const std::string & | str, |
| int & | out | ||
| ) |
Overloaded helper function to parse a numerical value from a string. Uses sscanf from <stdio> http://en.cppreference.com/w/c/io/fscanf http://www.cplusplus.com/reference/cstdio/scanf
| bool ttv::ParseNum | ( | const std::string & | str, |
| signed char & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| short int & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| long int & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| long long int & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| unsigned int & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| unsigned char & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| unsigned short int & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| unsigned long int & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| unsigned long long int & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| float & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| double & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| long double & | out | ||
| ) |
| bool ttv::ParseNum | ( | const std::string & | str, |
| char & | out | ||
| ) |
| bool ttv::ParseStreamInfo | ( | const ttv::json::Value & | root, |
| StreamInfo & | model | ||
| ) |
| bool ttv::ParseString | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| std::string & | result | ||
| ) |
Parse a string from the given Json object. Returns false if the object does not contain the given key.
| bool ttv::ParseString | ( | const ttv::json::Value & | root, |
| const std::string & | key, | ||
| std::string & | result, | ||
| const char * | defaultValue | ||
| ) |
Parse a string from the given Json object. In case of errors or a null value, assigns 'defaultValue' to 'result'. Returns true if the value is null. Returns false if the value is missing or not a string.
| bool ttv::ParseTimestamp | ( | const json::Value & | jTimestamp, |
| Timestamp & | result | ||
| ) |
| bool ttv::ParseTimestamp | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| Timestamp & | result | ||
| ) |
| bool ttv::ParseUInt | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| uint64_t & | result | ||
| ) |
Parse a uint64_t from the given Json object. Returns false if the object does not contain the given key.
| bool ttv::ParseUInt | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| uint32_t & | result | ||
| ) |
Parse a uint32_t from the given Json object. Returns false if the object does not contain the given key.
| bool ttv::ParseUInt | ( | const ttv::json::Value & | root, |
| const char * | key, | ||
| uint64_t & | result, | ||
| uint64_t | defaultValue | ||
| ) |
Parse a UInt64_t from the given Json object. In case of errors or a null value, assigns 'defaultValue' to 'result'. Returns true if the value is null. Returns false if the value is missing or not a string.
| bool ttv::ParseUInt32 | ( | const json::Value & | jValue, |
| uint32_t & | result | ||
| ) |
| bool ttv::ParseUserId | ( | const json::Value & | jId, |
| UserId & | result | ||
| ) |
| void ttv::RegisterErrorCodeValueFunction | ( | ErrorCodeValueFunction | func | ) |
Registers a function which will populate error code values.
| void ttv::RegisterErrorToStringFunction | ( | ErrorToStringFunction | func | ) |
Registers an error code to string function. Each module should register a function for its error codes.
| TTV_ErrorCode ttv::RegisterSocketFactory | ( | const std::shared_ptr< ISocketFactory > & | factory | ) |
Registers an ISocketFactory to be used when creating ISocket instances.
| [in] | factory | The factory to register. Cannot be null or already registered. |
| TTV_ErrorCode ttv::RegisterWebSocketFactory | ( | const std::shared_ptr< IWebSocketFactory > & | factory | ) |
Registers an IWebSocketFactory to be used when creating IWebSocket instances.
| [in] | factory | The factory to register. Cannot be null or already registered. |
| void ttv::RemoveFlag | ( | T & | x, |
| T | flag | ||
| ) |
| bool ttv::RFC3339TimeToUnixTimestamp | ( | const std::string & | str, |
| Timestamp & | result | ||
| ) |
| void ttv::SafeStringCopy | ( | char * | dst, |
| const char * | src, | ||
| size_t | maxLen | ||
| ) |
A better string copying function which guarantees null termination of the destination. Some platform versions of snprintf don't handle all cases as expected.
| TTV_ErrorCode ttv::SendHttpRequest | ( | const std::string & | url, |
| const std::vector< HttpParam > & | requestHeaders, | ||
| const uint8_t * | requestBody, | ||
| size_t | requestBodySize, | ||
| HttpRequestType | httpReqType, | ||
| uint | timeOutInSecs, | ||
| HttpRequestHeadersCallback | headersCallback, | ||
| HttpRequestCallback | responseCallback, | ||
| void * | userData | ||
| ) |
| TTV_ErrorCode ttv::SendHttpRequest | ( | const std::string & | url, |
| const std::vector< HttpParam > & | requestHeaders, | ||
| const uint8_t * | requestBody, | ||
| size_t | requestBodySize, | ||
| HttpRequestType | httpReqType, | ||
| uint | timeOutInSecs, | ||
| uint | numRetries, | ||
| HttpRequestHeadersCallback | headersCallback, | ||
| HttpRequestCallback | responseCallback, | ||
| void * | userData | ||
| ) |
| TTV_ErrorCode ttv::SendHttpRequest | ( | const std::string & | url, |
| const std::vector< HttpParam > & | urlParams, | ||
| const std::vector< HttpParam > & | requestHeaders, | ||
| const uint8_t * | requestBody, | ||
| size_t | requestBodySize, | ||
| HttpRequestType | httpReqType, | ||
| uint | timeOutInSecs, | ||
| uint | numRetries, | ||
| HttpRequestHeadersCallback | headersCallback, | ||
| HttpRequestCallback | responseCallback, | ||
| void * | userData | ||
| ) |
| TTV_ErrorCode ttv::SetClientId | ( | const std::string & | clientId | ) |
Sets the Twitch client-id to be used in the system. This must be set before initializing any modules and must not be set again until all modules are fully shut down.
| void ttv::SetEventTracker | ( | const std::shared_ptr< IEventTracker > & | eventTracker | ) |
Registers the tracking event handler for the whole SDK.
| void ttv::SetFlag | ( | T & | x, |
| T | flag, | ||
| bool | value | ||
| ) |
| void ttv::SetHttpRequest | ( | const std::shared_ptr< HttpRequest > & | http | ) |
| TTV_ErrorCode ttv::SetMemoryAllocationCallbacks | ( | TTV_AllocCallback | allocCallback, |
| TTV_FreeCallback | freeCallback | ||
| ) |
This will set custom memory allocation callbacks to be used by all Twitch SDK code.
| void ttv::SetMutexFactory | ( | std::shared_ptr< IMutexFactory > | factory | ) |
| void ttv::SetSystemClock | ( | const std::shared_ptr< ISystemClock > & | clock | ) |
Registers the global system clock implementation for the entire SDK.
| TTV_ErrorCode ttv::SetThreadApi | ( | std::shared_ptr< IThreadApi > | api | ) |
| TTV_ErrorCode ttv::SetThreadFactory | ( | std::shared_ptr< IThreadFactory > | factory | ) |
| void ttv::SetThreadSyncFactory | ( | std::shared_ptr< IThreadSyncFactory > | factory | ) |
| void ttv::SetTracer | ( | std::shared_ptr< ITracer > | tracer | ) |
| TTV_ErrorCode ttv::SetVersionString | ( | const std::string & | clientId | ) |
Sets the version string for the sdk. This should be called be the glue code generated by the generator scripts.
| void ttv::ShutdownModulesSync | ( | const std::vector< std::shared_ptr< ttv::IModule >> & | modules | ) |
Allows clients to quickly shut down all modules in the SDK synchronously. The list of modules must be given in order of shutdown. Thus, CoreAPI must appear last in the list if it is to be shut down.
| TTV_ErrorCode ttv::ShutdownSocketLibrary | ( | ) |
Shuts down the socket library subsystem. This should only be done after all modules are shut down and no more clients are using sockets. It is intended to be called some time after InitializeSocketLibrary() is called but it is safe to call ShutdownSocketLibrary() even if the library is already shut down or was never initialized.
| void ttv::Sleep | ( | uint64_t | milliseconds | ) |
Calls Sleep() on the registered ttv::IThreadApi.
| void ttv::Split | ( | const std::string & | str, |
| std::vector< std::string > & | result, | ||
| char | sep, | ||
| bool | includeEmpty | ||
| ) |
| void ttv::Split | ( | const std::string & | str, |
| const std::string & | delim, | ||
| std::vector< std::string > & | result | ||
| ) |
| TTV_ErrorCode ttv::SplitHttpParameters | ( | const std::string & | parameterString, |
| std::vector< std::pair< std::string, std::string >> & | result | ||
| ) |
| TTV_ErrorCode ttv::SplitHttpParameters | ( | const std::string & | parameterString, |
| std::map< std::string, std::string > & | result | ||
| ) |
| bool ttv::StartsWith | ( | const std::string & | str, |
| const std::string & | prefix | ||
| ) |
| uint64_t ttv::SystemTimeToMs | ( | uint64_t | sysTime | ) |
Converts system time to milliseconds.
| std::string ttv::ToLowerCase | ( | const std::string & | str | ) |
| TTV_ErrorCode ttv::TrackEvent | ( | const std::string & | eventName, |
| const std::map< std::string, TrackingValue > & | properties | ||
| ) |
Sends a tracking event to the globally registered event handler.
| [in] | eventName | The name of the event to send. |
| [in] | properties | A map of the event properties to send with the event. |
| void ttv::Trim | ( | std::string & | str | ) |
| TTV_ErrorCode ttv::TTV_CSharp_Broadcast_FreeArchivingState | ( | const TTV_ArchivingState * | state | ) |
| TTV_ErrorCode ttv::TTV_CSharp_Broadcast_FreeAuthToken | ( | const TTV_AuthToken * | authToken | ) |
| TTV_ErrorCode ttv::TTV_CSharp_Broadcast_FreeChannelInfo | ( | const TTV_ChannelInfo * | channelInfo | ) |
| TTV_ErrorCode ttv::TTV_CSharp_Broadcast_FreeGameNameList | ( | const TTV_GameInfoList * | gameList | ) |
| TTV_ErrorCode ttv::TTV_CSharp_Broadcast_FreeIngestList | ( | TTV_IngestList * | ingestList | ) |
| TTV_ErrorCode ttv::TTV_CSharp_Broadcast_FreeStreamInfo | ( | const TTV_StreamInfo * | streamInfo | ) |
| TTV_ErrorCode ttv::TTV_CSharp_Broadcast_FreeUserInfo | ( | const TTV_UserInfo___ * | userInfo | ) |
| TTV_ErrorCode ttv::TTV_CSharp_Broadcast_GetStreamTime | ( | uint64_t * | timeMs | ) |
| std::string ttv::UnixTimestampToRFC3339String | ( | Timestamp | timestamp | ) |
| void ttv::UnregisterErrorCodeValueFunction | ( | ErrorCodeValueFunction | func | ) |
Unregisters a function which will populate error code values.
| void ttv::UnregisterErrorToStringFunction | ( | ErrorToStringFunction | func | ) |
Unregisters a function previously registered via UnregisterErrorToStringFunction().
| TTV_ErrorCode ttv::UnregisterSocketFactory | ( | const std::shared_ptr< ISocketFactory > & | factory | ) |
Unregisters an ISocketFactory previously registered via RegisterSocketFactory().
| [in] | factory | The factory to unregister. Cannot be null and must be previously registered. |
| TTV_ErrorCode ttv::UnregisterWebSocketFactory | ( | const std::shared_ptr< IWebSocketFactory > & | factory | ) |
Unregisters an IWebSocketFactory previously registered via RegisterWebSocketFactory().
| [in] | factory | The factory to unregister. Cannot be null and must be previously registered. |
| void ttv::UrlDecode | ( | const std::string & | inputString, |
| std::stringstream & | outputStream | ||
| ) |
| void ttv::UrlDecode | ( | const std::string & | input, |
| std::string & | result | ||
| ) |
| std::string ttv::UrlDecode | ( | const std::string & | inputString | ) |
| void ttv::UrlEncode | ( | const std::string & | inputString, |
| std::stringstream & | outputStream | ||
| ) |
| std::string ttv::UrlEncode | ( | const std::string & | inputString | ) |
| bool ttv::gBroadcastInitialized |
| ManagedBroadcastAPIListener ttv::gManagedBroadcastAPIListener |
| ManagedStatsListener ttv::gManagedStatsListener |
| constexpr double ttv::kPi = 3.14159265358979323846 |
1.8.13