Sign in
fuchsia
/
third_party
/
github.com
/
google
/
farmhash
/
refs/heads/upstream/master
/
.
/
dev
/
WRAPPERuint64tconstcharssizetlen
blob: 73b0a3bb27290a08a4fac23b0cefedb4e656e6d2 [
file
] [
log
] [
blame
]
void
WRAPPER
(
const
void
*
key
,
int
len
,
uint32_t
seed
,
void
*
out
)
{
char
*
buf
=
(
char
*)
malloc
(
len
+
4
);
memcpy
(
buf
,
&
seed
,
4
);
memcpy
(
buf
+
4
,
key
,
len
);
*(
uint64_t
*)
out
=
FUNCTION
(
buf
,
len
+
4
);
free
(
buf
);
}