3 * System.Native PAL internal calls (Android)
4 * Adapter code between the Mono runtime and the CoreFX Platform Abstraction Layer (PAL)
5 * Copyright 2018 Microsoft
6 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
9 #include "pal_compiler.h"
12 * Reads the number of bytes specified into the provided buffer from the specified, opened file descriptor.
14 * Returns the number of bytes read on success; otherwise, -1 is returned an errno is set.
16 * Note - on fail. the position of the stream may change depending on the platform; consult man 2 read for more info
18 DLLEXPORT
int32_t SystemNative_Read(intptr_t fd
, void* buffer
, int32_t bufferSize
);