I hereby claim:
- I am garethlewin on github.
- I am garethlewin (https://keybase.io/garethlewin) on keybase.
- I have a public key whose fingerprint is BE25 1452 D510 2D82 7EDE 7A24 55B4 5CEA 0170 E380
To claim this, I am signing this object:
switch (message) | |
{ | |
case WM_CREATE: | |
hChannelMembers = CreateWindow(_T("LISTBOX"), _T(""), | |
WS_CHILD | WS_VISIBLE | LBS_STANDARD, | |
0, 0, 0,0, hWnd, IDC_MEMBERS, hInst, NULL); | |
hMessages = CreateWindow(_T("LISTBOX"), _T(""), | |
WS_CHILD | WS_VISIBLE | LBS_STANDARD, | |
0, 0, 0,0, hWnd, IDC_MESSAGES, hInst, NULL); |
/** | |
The values are the same, see: | |
SPEAKER_FRONT_LEFT 0x1 | |
SPEAKER_FRONT_RIGHT 0x2 | |
SPEAKER_FRONT_CENTER 0x4 | |
SPEAKER_LOW_FREQUENCY 0x8 | |
SPEAKER_BACK_LEFT 0x10 | |
SPEAKER_BACK_RIGHT 0x20 |
static ALWAYS_INLINE uint64_t endian_fix64( uint64_t x ) | |
{ | |
return endian_fix32(x>>32) + ((uint64_t)endian_fix32(x)<<32); | |
} | |
1>c:\dev\x264-devel\common\osdep.h(242): warning C4244: 'argument' : conversion from 'uint64_t' to 'uint32_t', possible loss of data | |
1>c:\dev\x264-devel\common\osdep.h(247): warning C4244: 'return' : conversion from 'uint64_t' to 'intptr_t', possible loss of data |
I hereby claim:
To claim this, I am signing this object:
void ParseHeader(const uint8_t* header, | |
size_t headerSize, | |
std::string& verb, | |
std::string& url, | |
urlParameters_t& params) | |
{ | |
using std::begin; | |
using std::end; | |
using std::find; | |
using std::find_first_of; |
TwitchAPI - GET / HTTP/1.1 | |
Host: localhost:55542 | |
Connection: keep-alive | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 | |
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 | |
DNT: 1 | |
Accept-Encoding: gzip,deflate,sdch | |
Accept-Language: en-GB,en;q=0.8,he;q=0.6 |
//-------------------------------------------------------------------------- | |
TTV_ErrorCode ttv::Streamer::SetIngestServer(const TTV_IngestServer* ingestServer) | |
{ | |
if (ingestServer == nullptr) | |
{ | |
ttv::trace::Message("Streamer", TTV_ML_ERROR, "Inside Streamer::SetIngestServer - Invalid ingest server"); | |
return TTV_EC_INVALID_INGEST_SERVER; | |
} | |
mSelectedIngestServer = *ingestServer; |
// Why does this work: | |
int addrInfoRet = getaddrinfo(host.c_str(), port.c_str(), &hints, &remoteHost); | |
auto deleter = [](addrinfo* p){ if (p) {freeaddrinfo (p);} }; | |
std::unique_ptr<addrinfo, decltype(deleter)> remoteHostContainer(remoteHost, deleter); | |
// But this doesn't: | |
int addrInfoRet = getaddrinfo(host.c_str(), port.c_str(), &hints, &remoteHost); | |
std::unique_ptr<addrinfo, decltype(freeaddrinfo)> remoteHostContainer(remoteHost, freeaddrinfo); |
//This is a define I see all the time | |
#define MAKE_FOURCC( ch0, ch1, ch2, ch3 ) \ | |
( (unsigned int)(unsigned char)(ch0) | ( (unsigned int)(unsigned char)(ch1) << 8 ) | \ | |
( (unsigned int)(unsigned char)(ch2) << 16 ) | ( (unsigned int)(unsigned char)(ch3) << 24 ) ) | |
// and I just don't get it, why prefer | |
uint32_t myFourCC = MAKE_FOURCC('a', 'b', 'c', 'd'); | |
// over | |
uint32_t myFourceCC = 'abcd'; |