Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pal_memory.c « System.Native « Unix « Native « libraries « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 35757dff03b9ddef5d9880cb167a3eef64ab1c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#include "pal_memory.h"

#include <stdlib.h>
#include <string.h>

void* SystemNative_MemAlloc(uintptr_t size)
{
    return malloc(size);
}

void* SystemNative_MemReAlloc(void* ptr, uintptr_t size)
{
    return realloc(ptr, size);
}

void SystemNative_MemFree(void* ptr)
{
    free(ptr);
}

void* SystemNative_MemSet(void* s, int c, uintptr_t n)
{
    return memset(s, c, n);
}