if (0 == (lu & 0xC0000000)) { cbit += 2; lu <<= 2; } if (0 == (lu & 0x80000000)) { cbit += 1; lu <<= 1; } Assert(lu & 0x80000000); return cbit; } charcount_t NumberUtilities::UInt16ToString(uint16 integer, __out __ecount(outBufferSize) WCHAR* outBuffer, charcount_t outBufferSize, char widthForPaddingZerosInsteadSpaces) { // inlined here WORD digit; charcount_t cchWritten = 0; Assert(cchWritten < outBufferSize); // word is 0 to 65,535 -- 5 digits max if (cchWritten < outBufferSize) { if (integer >= 10000) { digit = integer / 10000; integer %= 10000; *outBuffer = digit + _u('0');
#include "Base/ThreadContextTlsEntry.h" #ifdef DYNAMIC_PROFILE_STORAGE #include "Language/DynamicProfileStorage.h" #endif #ifdef CHAKRA_STATIC_LIBRARY #include "Core/ConfigParser.h" void ChakraBinaryAutoSystemInfoInit(AutoSystemInfo * autoSystemInfo) { autoSystemInfo->buildDateHash = JsUtil::CharacterBuffer<char>::StaticGetHashCode(__DATE__, _countof(__DATE__)); autoSystemInfo->buildTimeHash = JsUtil::CharacterBuffer<char>::StaticGetHashCode(__TIME__, _countof(__TIME__)); } bool ConfigParserAPI::FillConsoleTitle(__ecount(cchBufferSize) LPWSTR buffer, size_t cchBufferSize, __in LPWSTR moduleName) { return false; } void ConfigParserAPI::DisplayInitialOutput(__in LPWSTR moduleName) { } LPCWSTR JsUtil::ExternalApi::GetFeatureKeyName() { return _u(""); } #endif JsrtCallbackState::JsrtCallbackState(ThreadContext* currentThreadContext)
Return Value: HRESULT S_OK - On success E_* - On error Note: The annotation on pphProfiles is intended to express that, when *pcProfiles > 0, pphProfiles ought to be annotated with __deref_out_ecount(*pcProfiles) *pcProfiles == 0, pphProfiles ought to be annotated with __deref_out_opt --*/ HRESULT GetProfileData( __ecount(1) __post __elem_readableTo(1) __post __drv_when(*pcProfiles > 0, __post __deref __elem_writableTo(*pcProfiles) __post __deref __valid __refparam) __post __drv_when(*pcProfiles == 0, __post __deref __maybenull) HPROFILE** pphProfiles, __out DWORD* pcProfiles ) { HRESULT hr = S_OK; if (SUCCEEDED(hr = CHECK_POINTER(pphProfiles, E_POINTER)) && SUCCEEDED(hr = CHECK_POINTER(pcProfiles, E_POINTER)) && SUCCEEDED(hr = CHECK_POINTER(m_phProfiles, E_PENDING))) { *pphProfiles = 0; *pcProfiles = 0;