Lines Matching refs:ptr

614 static WORD ld_word (const BYTE* ptr)	/*	 Load a 2-byte little-endian word */  in ld_word()  argument
618 rv = ptr[1]; in ld_word()
619 rv = rv << 8 | ptr[0]; in ld_word()
623 static DWORD ld_dword (const BYTE* ptr) /* Load a 4-byte little-endian word */ in ld_dword() argument
627 rv = ptr[3]; in ld_dword()
628 rv = rv << 8 | ptr[2]; in ld_dword()
629 rv = rv << 8 | ptr[1]; in ld_dword()
630 rv = rv << 8 | ptr[0]; in ld_dword()
635 static QWORD ld_qword (const BYTE* ptr) /* Load an 8-byte little-endian word */ in ld_qword() argument
639 rv = ptr[7]; in ld_qword()
640 rv = rv << 8 | ptr[6]; in ld_qword()
641 rv = rv << 8 | ptr[5]; in ld_qword()
642 rv = rv << 8 | ptr[4]; in ld_qword()
643 rv = rv << 8 | ptr[3]; in ld_qword()
644 rv = rv << 8 | ptr[2]; in ld_qword()
645 rv = rv << 8 | ptr[1]; in ld_qword()
646 rv = rv << 8 | ptr[0]; in ld_qword()
652 static void st_word (BYTE* ptr, WORD val) /* Store a 2-byte word in little-endian */ in st_word() argument
654 *ptr++ = (BYTE)val; val >>= 8; in st_word()
655 *ptr++ = (BYTE)val; in st_word()
658 static void st_dword (BYTE* ptr, DWORD val) /* Store a 4-byte word in little-endian */ in st_dword() argument
660 *ptr++ = (BYTE)val; val >>= 8; in st_dword()
661 *ptr++ = (BYTE)val; val >>= 8; in st_dword()
662 *ptr++ = (BYTE)val; val >>= 8; in st_dword()
663 *ptr++ = (BYTE)val; in st_dword()
667 static void st_qword (BYTE* ptr, QWORD val) /* Store an 8-byte word in little-endian */ in st_qword() argument
669 *ptr++ = (BYTE)val; val >>= 8; in st_qword()
670 *ptr++ = (BYTE)val; val >>= 8; in st_qword()
671 *ptr++ = (BYTE)val; val >>= 8; in st_qword()
672 *ptr++ = (BYTE)val; val >>= 8; in st_qword()
673 *ptr++ = (BYTE)val; val >>= 8; in st_qword()
674 *ptr++ = (BYTE)val; val >>= 8; in st_qword()
675 *ptr++ = (BYTE)val; val >>= 8; in st_qword()
676 *ptr++ = (BYTE)val; in st_qword()
2722 const TCHAR** ptr /* Pointer to pointer to the ANSI/OEM or Unicode string */ argument
2729 chr = tchar2uni(ptr);
2734 chr = (BYTE)*(*ptr)++; /* Get a byte */
2743 chr = dbc_2nd((BYTE)**ptr) ? chr << 8 | (BYTE)*(*ptr)++ : 0;