Searched refs:UB (Results 1 – 3 of 3) sorted by relevance
332 static inline int UsefulBuf_IsNULL(UsefulBuf UB);342 static inline int UsefulBuf_IsNULLC(UsefulBufC UB);362 static inline int UsefulBuf_IsEmpty(UsefulBuf UB);372 static inline int UsefulBuf_IsEmptyC(UsefulBufC UB);382 static inline int UsefulBuf_IsNULLOrEmpty(UsefulBuf UB);392 static inline int UsefulBuf_IsNULLOrEmptyC(UsefulBufC UB);402 static inline UsefulBufC UsefulBuf_Const(const UsefulBuf UB);577 static inline UsefulBufC UsefulBuf_Head(UsefulBufC UB, size_t uAmount);593 static inline UsefulBufC UsefulBuf_Tail(UsefulBufC UB, size_t uAmount);637 size_t UsefulBuf_IsValue(const UsefulBufC UB, uint8_t uValue);[all …]
113 size_t UsefulBuf_IsValue(const UsefulBufC UB, uint8_t uValue) in UsefulBuf_IsValue() argument115 if(UsefulBuf_IsNULLOrEmptyC(UB)) { in UsefulBuf_IsValue()120 const uint8_t * const pEnd = (const uint8_t *)UB.ptr + UB.len; in UsefulBuf_IsValue()121 for(const uint8_t *p = UB.ptr; p < pEnd; p++) { in UsefulBuf_IsValue()125 return (size_t)(p - (const uint8_t *)UB.ptr); in UsefulBuf_IsValue()166 pMe->UB = Storage; in UsefulOutBuf_Init()246 if(pMe->data_len > pMe->UB.len) { /* Check #1 */ in UsefulOutBuf_InsertUsefulBuf()277 uint8_t *pSourceOfMove = ((uint8_t *)pMe->UB.ptr) + uInsertionPos; /* PtrMath #1 */ in UsefulOutBuf_InsertUsefulBuf()360 if(pMe->data_len > pMe->UB.len) { /* Check #1 */ in UsefulOutBuf_Advance()398 return (UsefulBufC){pMe->UB.ptr, pMe->data_len}; in UsefulOutBuf_OutUBuf()[all …]
26 // 1 <= sr <= N - 1. Shifts do not trigger UB.55 // 1 <= sr <= N - 1. Shifts do not trigger UB.