Started from buttom go to the sky
This commit is contained in:
parent
96215449bd
commit
f811e55dea
4781 changed files with 10121 additions and 1743 deletions
39
stdme/src/hash/hash_signed.c
Normal file
39
stdme/src/hash/hash_signed.c
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* hash_signed.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/11 17:26:06 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/11 17:27:12 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "me/hash/hasher.h"
|
||||
#include "me/types.h"
|
||||
|
||||
void hasher_write_i8(t_hasher *hasher, t_i8 n)
|
||||
{
|
||||
hasher_write_bytes(hasher, (t_u8 *)&n, 1);
|
||||
}
|
||||
|
||||
void hasher_write_i16(t_hasher *hasher, t_i16 n)
|
||||
{
|
||||
hasher_write_bytes(hasher, (t_u8 *)&n, 2);
|
||||
}
|
||||
|
||||
void hasher_write_i32(t_hasher *hasher, t_i32 n)
|
||||
{
|
||||
hasher_write_bytes(hasher, (t_u8 *)&n, 1);
|
||||
}
|
||||
|
||||
void hasher_write_i64(t_hasher *hasher, t_i64 n)
|
||||
{
|
||||
hasher_write_bytes(hasher, (t_u8 *)&n, 1);
|
||||
}
|
||||
|
||||
void hasher_write_isize(t_hasher *hasher, t_isize n)
|
||||
{
|
||||
hasher_write_bytes(hasher, (t_u8 *)&n, sizeof(t_isize));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue