2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 #include <dali/integration-api/debug.h>
\r
19 #include <dali/public-api/common/dali-vector.h>
\r
20 #include <dali/internal/system/common/file-closer.h>
\r
22 #include <CustomFile.h>
\r
30 namespace InternalFile
\r
32 FILE *fmemopen( void *__s, size_t __len, const char *__modes )
\r
34 FILE *ret = (FILE*)CustomFile::fmemopen( __s, __len, __modes );
\r
38 size_t fread( void* _Buffer, size_t _ElementSize, size_t _ElementCount, FILE* _Stream )
\r
40 return CustomFile::fread( _Buffer, _ElementSize, _ElementCount, _Stream );
\r
43 int fclose( FILE *__stream )
\r
45 return CustomFile::fclose( __stream );
\r
48 void fwrite( void *buf, int size, int count, FILE *fp )
\r
50 CustomFile::fwrite( buf, size * count, fp );
\r
53 int fseek( FILE *fp, int offset, int origin )
\r
55 return CustomFile::fseek( fp, offset, origin );
\r
58 int ftell( FILE *fp )
\r
60 return CustomFile::ftell( fp );
\r
63 bool feof( FILE *fp )
\r
65 return CustomFile::feof( fp );
\r