comparison src/c/urweb.c @ 745:ee2feab275db

blobSize
author Adam Chlipala <adamc@hcoop.net>
date Sun, 26 Apr 2009 11:07:25 -0400
parents 43553c93dd8c
children 8ce31c052dce
comparison
equal deleted inserted replaced
744:1ef3c1ef617d 745:ee2feab275db
2181 2181
2182 uw_Basis_string uw_Basis_fileMimeType(uw_context ctx, uw_Basis_file f) { 2182 uw_Basis_string uw_Basis_fileMimeType(uw_context ctx, uw_Basis_file f) {
2183 return f.type; 2183 return f.type;
2184 } 2184 }
2185 2185
2186 uw_Basis_int uw_Basis_blobSize(uw_context ctx, uw_Basis_blob b) {
2187 return b.size;
2188 }
2189
2186 uw_Basis_blob uw_Basis_fileData(uw_context ctx, uw_Basis_file f) { 2190 uw_Basis_blob uw_Basis_fileData(uw_context ctx, uw_Basis_file f) {
2187 return f.data; 2191 return f.data;
2188 } 2192 }
2189 2193
2190 __attribute__((noreturn)) void uw_return_blob(uw_context ctx, uw_Basis_blob b, uw_Basis_string mimeType) { 2194 __attribute__((noreturn)) void uw_return_blob(uw_context ctx, uw_Basis_blob b, uw_Basis_string mimeType) {