|
funkalicious 0.1
|
00001 /* 00002 ** read_binary_data.h 00003 ** 00004 Copyright (C) 2009 Joseph Pingenot 00005 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU Affero General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU Affero General Public License for more details. 00015 00016 You should have received a copy of the GNU Affero General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 00019 ** Made by Johnny Q. Hacker 00020 ** Login <solarion@borkborkbork> 00021 ** 00022 ** Started on Mon Nov 23 17:12:09 2009 Johnny Q. Hacker 00023 ** Last update Mon Nov 23 17:12:09 2009 Johnny Q. Hacker 00024 */ 00025 00026 #include <glib-2.0/glib.h> 00027 #include <gio/gio.h> 00028 #include <libdotcode/binary_data_common.h> 00029 00030 #ifndef READ_BINARY_DATA_H_ 00031 # define READ_BINARY_DATA_H_ 00032 00033 struct dotcode_data* dotcode_read_binary_data(GFile* file, GError **err); 00034 00035 char* dotcode_read_sstring(gboolean little_endian, GInputStream *is, GError **error); 00036 int dotcode_read_int(gboolean little_endian, GInputStream *is, GError **error); 00037 double dotcode_read_float8(gboolean little_endian, GInputStream *is, GError **error); 00038 float dotcode_read_float4(gboolean little_endian, GInputStream *is, GError **error); 00039 struct dotcode_vector* dotcode_read_vector(gboolean little_endian, enum dotcode_type t, GInputStream *is, GError **error); 00040 struct dotcode_array* dotcode_read_array(gboolean little_endian, enum dotcode_type t, GInputStream *is, GError **error); 00041 00042 struct dotcode_grid* dotcode_read_grid(gboolean little_endian, GInputStream *is, GError **err); 00043 00044 struct dotcode_tensor* dotcode_read_tensor(gboolean little_endian, GInputStream *is, GError **err); 00045 void* read_dotcode_typed_file(enum dotcode_type t, GFile *infile, GError **err); 00046 void* dotcode_read_generic(enum dotcode_type t, gboolean little_endian, GInputStream *is, GError **err); 00047 void* read_dotcode_generic_file(enum dotcode_type *t, GFile *infile, GError **err); 00048 00049 00050 00051 #endif /* !READ_BINARY_DATA_H_ */