Lines Matching refs:memPtr

51 MEM_STATIC U16 MEM_read16(const void* memPtr);
52 MEM_STATIC U32 MEM_read32(const void* memPtr);
53 MEM_STATIC U64 MEM_read64(const void* memPtr);
54 MEM_STATIC size_t MEM_readST(const void* memPtr);
56 MEM_STATIC void MEM_write16(void* memPtr, U16 value);
57 MEM_STATIC void MEM_write32(void* memPtr, U32 value);
58 MEM_STATIC void MEM_write64(void* memPtr, U64 value);
61 MEM_STATIC U16 MEM_readLE16(const void* memPtr);
62 MEM_STATIC U32 MEM_readLE24(const void* memPtr);
63 MEM_STATIC U32 MEM_readLE32(const void* memPtr);
64 MEM_STATIC U64 MEM_readLE64(const void* memPtr);
65 MEM_STATIC size_t MEM_readLEST(const void* memPtr);
67 MEM_STATIC void MEM_writeLE16(void* memPtr, U16 val);
68 MEM_STATIC void MEM_writeLE24(void* memPtr, U32 val);
69 MEM_STATIC void MEM_writeLE32(void* memPtr, U32 val32);
70 MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64);
71 MEM_STATIC void MEM_writeLEST(void* memPtr, size_t val);
74 MEM_STATIC U32 MEM_readBE32(const void* memPtr);
75 MEM_STATIC U64 MEM_readBE64(const void* memPtr);
76 MEM_STATIC size_t MEM_readBEST(const void* memPtr);
78 MEM_STATIC void MEM_writeBE32(void* memPtr, U32 val32);
79 MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64);
80 MEM_STATIC void MEM_writeBEST(void* memPtr, size_t val);
111 MEM_STATIC U16 MEM_read16(const void *memPtr) in MEM_read16() argument
113 return get_unaligned((const U16 *)memPtr); in MEM_read16()
116 MEM_STATIC U32 MEM_read32(const void *memPtr) in MEM_read32() argument
118 return get_unaligned((const U32 *)memPtr); in MEM_read32()
121 MEM_STATIC U64 MEM_read64(const void *memPtr) in MEM_read64() argument
123 return get_unaligned((const U64 *)memPtr); in MEM_read64()
126 MEM_STATIC size_t MEM_readST(const void *memPtr) in MEM_readST() argument
128 return get_unaligned((const size_t *)memPtr); in MEM_readST()
131 MEM_STATIC void MEM_write16(void *memPtr, U16 value) in MEM_write16() argument
133 put_unaligned(value, (U16 *)memPtr); in MEM_write16()
136 MEM_STATIC void MEM_write32(void *memPtr, U32 value) in MEM_write32() argument
138 put_unaligned(value, (U32 *)memPtr); in MEM_write32()
141 MEM_STATIC void MEM_write64(void *memPtr, U64 value) in MEM_write64() argument
143 put_unaligned(value, (U64 *)memPtr); in MEM_write64()
148 MEM_STATIC U16 MEM_readLE16(const void *memPtr) in MEM_readLE16() argument
150 return get_unaligned_le16(memPtr); in MEM_readLE16()
153 MEM_STATIC void MEM_writeLE16(void *memPtr, U16 val) in MEM_writeLE16() argument
155 put_unaligned_le16(val, memPtr); in MEM_writeLE16()
158 MEM_STATIC U32 MEM_readLE24(const void *memPtr) in MEM_readLE24() argument
160 return MEM_readLE16(memPtr) + (((const BYTE *)memPtr)[2] << 16); in MEM_readLE24()
163 MEM_STATIC void MEM_writeLE24(void *memPtr, U32 val) in MEM_writeLE24() argument
165 MEM_writeLE16(memPtr, (U16)val); in MEM_writeLE24()
166 ((BYTE *)memPtr)[2] = (BYTE)(val >> 16); in MEM_writeLE24()
169 MEM_STATIC U32 MEM_readLE32(const void *memPtr) in MEM_readLE32() argument
171 return get_unaligned_le32(memPtr); in MEM_readLE32()
174 MEM_STATIC void MEM_writeLE32(void *memPtr, U32 val32) in MEM_writeLE32() argument
176 put_unaligned_le32(val32, memPtr); in MEM_writeLE32()
179 MEM_STATIC U64 MEM_readLE64(const void *memPtr) in MEM_readLE64() argument
181 return get_unaligned_le64(memPtr); in MEM_readLE64()
184 MEM_STATIC void MEM_writeLE64(void *memPtr, U64 val64) in MEM_writeLE64() argument
186 put_unaligned_le64(val64, memPtr); in MEM_writeLE64()
189 MEM_STATIC size_t MEM_readLEST(const void *memPtr) in MEM_readLEST() argument
192 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST()
194 return (size_t)MEM_readLE64(memPtr); in MEM_readLEST()
197 MEM_STATIC void MEM_writeLEST(void *memPtr, size_t val) in MEM_writeLEST() argument
200 MEM_writeLE32(memPtr, (U32)val); in MEM_writeLEST()
202 MEM_writeLE64(memPtr, (U64)val); in MEM_writeLEST()
207 MEM_STATIC U32 MEM_readBE32(const void *memPtr) in MEM_readBE32() argument
209 return get_unaligned_be32(memPtr); in MEM_readBE32()
212 MEM_STATIC void MEM_writeBE32(void *memPtr, U32 val32) in MEM_writeBE32() argument
214 put_unaligned_be32(val32, memPtr); in MEM_writeBE32()
217 MEM_STATIC U64 MEM_readBE64(const void *memPtr) in MEM_readBE64() argument
219 return get_unaligned_be64(memPtr); in MEM_readBE64()
222 MEM_STATIC void MEM_writeBE64(void *memPtr, U64 val64) in MEM_writeBE64() argument
224 put_unaligned_be64(val64, memPtr); in MEM_writeBE64()
227 MEM_STATIC size_t MEM_readBEST(const void *memPtr) in MEM_readBEST() argument
230 return (size_t)MEM_readBE32(memPtr); in MEM_readBEST()
232 return (size_t)MEM_readBE64(memPtr); in MEM_readBEST()
235 MEM_STATIC void MEM_writeBEST(void *memPtr, size_t val) in MEM_writeBEST() argument
238 MEM_writeBE32(memPtr, (U32)val); in MEM_writeBEST()
240 MEM_writeBE64(memPtr, (U64)val); in MEM_writeBEST()