ReactOS
0.4.17-dev-934-g091855f
utils.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022 Matteo Bruni for CodeWeavers
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17
*/
18
19
#ifndef __WINE_UTILS_H
20
#define __WINE_UTILS_H
21
22
#include <stdint.h>
23
24
static
inline
uint32_t
read_u32
(
const
char
**
ptr
)
25
{
26
uint32_t
r
;
27
28
memcpy
(&
r
, *
ptr
,
sizeof
(
r
));
29
*
ptr
+=
sizeof
(
r
);
30
return
r
;
31
}
32
33
void
skip_u32_unknown
(
const
char
**
ptr
,
unsigned
int
count
);
34
35
#endif
/* __WINE_UTILS_H */
uint32_t
UINT32 uint32_t
Definition:
types.h:75
read_u32
static uint32_t read_u32(const char **ptr)
Definition:
utils.h:24
skip_u32_unknown
void skip_u32_unknown(const char **ptr, unsigned int count)
Definition:
utils.c:516
count
GLuint GLuint GLsizei count
Definition:
gl.h:1545
r
GLdouble GLdouble GLdouble r
Definition:
gl.h:2055
memcpy
#define memcpy(s1, s2, n)
Definition:
mkisofs.h:878
ptr
static PVOID ptr
Definition:
dispmode.c:27
dll
directx
wine
d3dcompiler_43
utils.h
Generated on Sat Sep 26 2026 06:25:24 for ReactOS by
1.9.6