| /CTR-SDK-0.14.4/sources/libraries/rdt/CTR/ |
| D | rdt_Header.cpp | 54 char buf[256] = ""; in PrintDebugInfo() local 56 controlBit & BIT_ACK ? strcat_s(buf, "[ACK]") : strcat_s(buf, "[---]"); in PrintDebugInfo() 57 controlBit & BIT_SYN ? strcat_s(buf, "[SYN]") : strcat_s(buf, "[---]"); in PrintDebugInfo() 58 controlBit & BIT_FIN ? strcat_s(buf, "[FIN]") : strcat_s(buf, "[---]"); in PrintDebugInfo() 59 controlBit & BIT_RST ? strcat_s(buf, "[RST]") : strcat_s(buf, "[---]"); in PrintDebugInfo() 61 controlBit & BIT_ACK ? strcat(buf, "[ACK]") : strcat(buf, "[---]"); in PrintDebugInfo() 62 controlBit & BIT_SYN ? strcat(buf, "[SYN]") : strcat(buf, "[---]"); in PrintDebugInfo() 63 controlBit & BIT_FIN ? strcat(buf, "[FIN]") : strcat(buf, "[---]"); in PrintDebugInfo() 64 controlBit & BIT_RST ? strcat(buf, "[RST]") : strcat(buf, "[---]"); in PrintDebugInfo() 66 LOG("Control bit: %s\n", buf); in PrintDebugInfo()
|
| D | rdt_ReceiveBuffer.cpp | 184 char buf[BUFSIZE*2]; in Test() local 185 CU_ASSERT(!w.Push(buf, sizeof(buf))); // 大きすぎるデータをPushしようとしているので、失敗するはず。 in Test() 188 CU_ASSERT(w.Read(buf, 5)==5); in Test() 189 CU_ASSERT(strncmp(buf, "Hello", 5)==0); in Test() 196 CU_ASSERT(w.Read(buf, 5)==2); in Test() 200 CU_ASSERT(w.Read(buf, 100)==7); in Test()
|
| D | rdt_Segment.cpp | 115 char buf[PAYLOAD_SIZE+1]; in PrintDebugInfo() local 116 u32 len = GetData(buf, PAYLOAD_SIZE); in PrintDebugInfo() 117 buf[len] = '\0'; in PrintDebugInfo()
|
| D | rdt_SendBuffer.cpp | 160 u8 buf[BUFSIZE]; in Test() local 163 s.Initialize(buf, BUFSIZE); in Test()
|
| D | rdt_Transceiver.cpp | 428 char buf[Segment::PAYLOAD_SIZE]; in Test() local 429 u32 sz = s_recvSeg.GetData(buf, Segment::PAYLOAD_SIZE); in Test() 430 buf[sz] = '\0'; in Test() 431 CU_ASSERT(strcmp(c_msg, buf)==0); in Test()
|
| /CTR-SDK-0.14.4/include/nn/hio/CTR/ |
| D | hio_Api.h | 191 Result GetCurrentDirectory(s32* pLength, char* buf, s32 length); 206 Result GetCurrentDirectory(s32* pLength, wchar_t* buf, s32 length); 219 s32 GetCurrentDirectory(char* buf, s32 length); 232 s32 GetCurrentDirectory(wchar_t* buf, s32 length); 271 Result GetEnvironmentVariable(s32* pLength, char* buf, s32 length, const char* name); 285 s32 GetEnvironmentVariable(char* buf, size_t length, const char* name); 302 Result GetEnvironmentVariable(s32* pLength, wchar_t* buf, s32 length, const wchar_t* name); 317 s32 GetEnvironmentVariable(wchar_t* buf, s32 length, const wchar_t* name);
|
| D | hio_HostFile.h | 146 Result Read(size_t* pRead, void* buf, size_t size); 158 s32 Read(void* buf, size_t size) in Read() argument 161 return Read(&read, buf, size).IsFailure() ? -1: static_cast<s32>(read); in Read() 175 Result Write(size_t* pWritten, const void* buf, size_t size); 187 s32 Write(const void* buf, size_t size) in Write() argument 190 return Write(&written, buf, size).IsFailure() ? -1: static_cast<s32>(written); in Write()
|
| D | hio_SerialChannel.h | 165 Result Read(size_t* pReadSize, void* buf, size_t size, bit32 attr=ATTRIBUTE_NONE); 180 s32 Read(void* buf, size_t size, bit32 attr=ATTRIBUTE_NONE) 183 return Read(&read, buf, size, attr).IsFailure() ? -1: static_cast<s32>(read); 214 Result Write(size_t* pWrittenSize, const void* buf, size_t size, bit32 attr=ATTRIBUTE_NONE); 229 s32 Write(const void* buf, size_t size, bit32 attr=ATTRIBUTE_NONE) 232 return Write(&written, buf, size, attr).IsFailure() ? -1: static_cast<s32>(written);
|
| D | hio_SharedMemoryChannel.h | 102 Result Read(void* buf, size_t length, int offset); 116 Result Write(const void* buf, size_t length, int offset);
|
| /CTR-SDK-0.14.4/include/nn/net/compatible/nnet/ |
| D | nnet_ring.h | 45 u8* NNET_RingIn ( u8* buf, s32 size, u8* head, s32 used, const u8* data, s32 len ); 46 u8* NNET_RingInMbuf ( u8* buf, s32 size, u8* head, s32 used, NOSMessageBuf *mbuf, s32 len ); 47 u8* NNET_RingInExMbuf( u8* buf, s32 size, u8* head, s32 used, s32 offset, NOSMessageBuf *mbuf, s3… 48 u8* NNET_RingOut( u8* buf, s32 size, u8* head, s32 used, u8* data, s32 len ); 49 int NNET_RingGet(u8* buf, s32 size, u8* head, s32 used, NNETVec* vec, s32 len); 50 int NNET_RingGetMbuf(u8* buf, s32 size, u8* head, s32 used, NOSMessageBuf *mbuf, s32 len); 51 u8* NNET_RingPut( u8* buf, s32 size, u8* head, s32 used, s32 len );
|
| /CTR-SDK-0.14.4/sources/libraries/dbg/ |
| D | dbg_DebugString.cpp | 49 char buf[NN_DBG_PRINTF_BUFFER_LENGTH]; in VPrintf() local 50 u32 length = ::std::vsnprintf(buf, sizeof(buf), fmt, arg); in VPrintf() 55 PutString(buf, length); in VPrintf() 60 char buf[NN_DBG_TPRINTF_BUFFER_LENGTH]; in TVPrintf() local 61 u32 length = nstd::TVSNPrintf(buf, sizeof(buf), fmt, arg); in TVPrintf() 66 PutString(buf, length); in TVPrintf()
|
| /CTR-SDK-0.14.4/include/nn/socket/ |
| D | socket_Berkeley.h | 244 inline s32 RecvFrom(s32 s, void* buf, s32 len, s32 flags, SockAddrIn* sockFrom) in RecvFrom() argument 250 …result = detail::RecvFromSmall(&rval, s, reinterpret_cast<u8*>(buf), len, flags, reinterpret_cast<… in RecvFrom() 254 …result = detail::RecvFrom(&rval, s, reinterpret_cast<u8*>(buf), len, flags, reinterpret_cast<u8*>(… in RecvFrom() 273 inline s32 Recv(s32 s, void* buf, s32 len, s32 flags) in Recv() argument 275 return RecvFrom(s, buf, len, flags, NULL); in Recv() 290 inline s32 Read(s32 s, void* buf, s32 len) in Read() argument 292 return RecvFrom(s, buf, len, 0, NULL); in Read() 322 inline s32 SendTo(s32 s, const void* buf, s32 len, s32 flags, const SockAddrIn* sockTo) in SendTo() argument 329 reinterpret_cast<const u8*>(buf), len, in SendTo() 336 reinterpret_cast<const u8*>(buf), len, in SendTo() [all …]
|
| D | socket_IpcWrapper.h | 41 Result RecvFrom( s32* rval, s32 s, u8 buf[], s32 len, s32 flags, u8 sockFrom[], size_t salen ); 42 …Result RecvFromSmall( s32* rval, s32 s, u8 buf[], s32 len, s32 flags, u8 sockFrom[], size_t salen … 43 …Result SendTo( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], size_t sal… 44 …Result SendToSmall( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], size_… 45 …Result SendToSmallMulti( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], …
|
| D | socket_User.h | 92 …nn::Result RecvFrom( s32* rval, s32 s, u8 buf[], s32 len, s32 flags, u8 sockFrom[], size_t salen ); 93 …nn::Result RecvFromSmall( s32* rval, s32 s, u8 buf[], s32* len, s32 flags, u8 sockFrom[], size_t s… 94 …nn::Result SendTo( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], size_t… 95 …nn::Result SendToSmall( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], s…
|
| /CTR-SDK-0.14.4/sources/libraries/rtport/rvct/ |
| D | rvct_stdio.cpp | 38 …_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode) { NN_UNUSED_VAR(fh); NN_UN… in _sys_write() argument 39 … _sys_read(FILEHANDLE fh, unsigned char * buf, unsigned len, int mode) { NN_UNUSED_VAR(fh); NN_UN… in _sys_read() argument
|
| /CTR-SDK-0.14.4/include/nn/util/ARMv6/ |
| D | util_LockFreeQueueImpl.h | 39 bit64 buf; member 43 LockFreeQueuePointer(const LockFreeQueuePointer& other) : buf(other.buf) {} in LockFreeQueuePointer() 44 bool operator==(const LockFreeQueuePointer& other) { return buf == other.buf; } 59 m_next.buf = 0xffffffffffffffffULL; in MarkAsNotInserted() 66 NN_TASSERT_(m_next.buf == 0xffffffffffffffffULL); in AssertNotInserted()
|
| /CTR-SDK-0.14.4/sources/libraries/test/ |
| D | test_String.cpp | 37 char buf[11]; in String() local 38 ::std::sprintf(buf, "%d", num); in String() 39 Initialize(buf); in String()
|
| D | test_XmlOutput.cpp | 56 char buf[STR_LEN + 1]; in ConvertToXmlString() local 63 char* pDst = buf; in ConvertToXmlString() 71 if(pDst + copyLens[index] - buf > STR_LEN) in ConvertToXmlString() 82 if(pDst + 1 - buf > STR_LEN) in ConvertToXmlString() 91 return String(buf); in ConvertToXmlString()
|
| D | test_Suite.cpp | 272 char buf[256]; in ResultFailureHandler() local 273 ::std::vsnprintf(buf, sizeof(buf), fmt, vlist); in ResultFailureHandler() 278 s_CurrentSuite->OnPanic(filename, lineno, buf); in ResultFailureHandler() 297 char buf[256]; in ResultPanicHandler() local 298 ::std::vsnprintf(buf, sizeof(buf), fmt, vlist); in ResultPanicHandler() 301 s_CurrentSuite->OnPanic(filename, lineno, buf); in ResultPanicHandler()
|
| /CTR-SDK-0.14.4/sources/libraries/os/ |
| D | os_DeliverArg.cpp | 35 u16 CalcCRC16withIv(u16 iv, const void* buf, u32 size) in CalcCRC16withIv() argument 39 u8* data = (u8*)buf; in CalcCRC16withIv() 103 m_pBuf = m_pInfo->buf; in InitializeForEnc() 128 if (length > m_pInfo->argBufferSize - (m_pBuf - m_pInfo->buf) - 2) in SetString() 176 if (length > m_pInfo->argBufferSize - (m_pBuf - m_pInfo->buf) - 2) in SetString() 208 u8* pDest = &m_pInfo->buf[m_pInfo->argBufferSize + m_pInfo->binarySize]; in SetBinary() 398 ::std::memcpy(pBinary, &m_pInfo->buf[m_pInfo->argBufferSize], nCopySize); in GetBinary() 455 return GetArgcCore(reinterpret_cast<const char*>(m_pInfo->buf)) + 1; in GetArgc() 467 return (n == 0) ? procName: GetArgvCore(reinterpret_cast<const char*>(m_pInfo->buf), n - 1); in GetArgv()
|
| /CTR-SDK-0.14.4/include/nn/fslow/ |
| D | fslow_SafePath.h | 82 char buf[512]; in PRINT() local 83 std::wcstombs(buf, (*this)->GetString(), 512); in PRINT() 84 nn::dbg::detail::TPrintf("SafePath::PRINT \"%s\"\n", buf); in PRINT()
|
| D | fslow_Path.h | 94 char buf[256]; in PRINT() local 95 std::wcstombs(buf, static_cast<const wchar_t*>(m_Data), 256); in PRINT() 96 nn::dbg::detail::TPrintf("PATH_TYPE_WSTRING \"%s\"\n", buf); in PRINT()
|
| /CTR-SDK-0.14.4/include/nn/util/detail/ |
| D | util_CLibImpl.h | 36 char buf[size]; \ 46 char buf[size]; \
|
| /CTR-SDK-0.14.4/include/nn/net/compatible/nssl/ |
| D | nssl.h | 163 s32 NSSL_Read ( NSSLId sslId, char* buf, size_t bufSize ); 164 s32 NSSL_Peek ( NSSLId sslId, char* buf, size_t bufSize ); 165 s32 NSSL_Write ( NSSLId sslId, const char* buf, size_t bufSize );
|
| /CTR-SDK-0.14.4/include/nn/net/compatible/nsoc/ |
| D | nsoc_user.h | 628 extern int NSOC_Read(int s, void* buf, int len); 629 extern int NSOC_Recv(int s, void* buf, int len, int flags); 630 extern int NSOC_RecvFrom(int s, void* buf, int len, int flags, void* sockFrom); 631 extern int NSOC_Write(int s, const void* buf, int len); 632 extern int NSOC_Send(int s, const void* buf, int len, int flags); 633 extern int NSOC_SendTo(int s, const void* buf, int len, int flags, const void* sockTo);
|