Found 716 results in 143 files, showing top 50 files (show more).
rhdf5:R/H5.R: [ ]
30: H5close <- function( ) {
79: .H5close <- function(h5id){
88:     closeFunc <- switch(truetype,
73: h5closeAll <- function() {
7: #' * `H5close` flushes all data to disk, closes all open identifiers, and cleans up memory.
15: #'   H5close()
31:   invisible(.Call("_H5close", PACKAGE='rhdf5'))
46: #' Close all open HDF5 handles
51: #' [H5close()].
68: #' ## close all open identifiers and verify
76:     invisible(lapply(objects, .H5close))
95:                         stop("Error in h5closeAll(). Appropriate close function not found", call. = FALSE)
49: #' and not closed correctly.  This function identifies all open handles and
50: #' closes them.  It replaces the functionality previously supplied by
62: #' h5createFile("ex_h5closeAll.h5")
63: #' H5Fopen("ex_h5closeAll.h5")
69: #' h5closeAll()
72: #' @export h5closeAll
83:         stop("Error in h5closeAll(). H5Identifier not valid.", call. = FALSE)
89:                         H5I_FILE = H5Fclose,
90:                         H5I_GROUP = H5Gclose,
91:                         H5I_DATASET = H5Dclose,
92:                         H5I_GENPROP_LST = H5Pclose,
93:                         H5I_DATASPACE = H5Sclose,
94:                         H5I_ATTR = H5Aclose,
98:     closeFunc(h5id)
rhdf5:src/H5.c: [ ]
20: SEXP _H5close(void) {
4: SEXP _H5close(void);
19: /* herr_t H5close(void) */
21:   herr_t herr = H5close();
rhdf5:R/H5P.R: [ ]
73: H5Pclose <- function( h5plist ) {
669: H5Pclose_class <- function( h5plistclass ) {
62: #' Close and release a property list
70: #' to close.
64: #' `H5Pclose()` terminates access to a property list. All property lists 
65: #' should be closed when they no longer need to be accessed. This 
66: #' frees resources used by the property list.  Failing to call `H5Pclose()`
75:   invisible(.Call("_H5Pclose", h5plist@ID, PACKAGE='rhdf5'))
262: #' H5Pclose(pid)
671:   invisible(.Call("_H5Pclose_class", h5plistclass@ID, PACKAGE='rhdf5'))
rhdf5:src/H5P.c: [ ]
45: SEXP _H5Pclose( SEXP _plist ) {
2044: SEXP _H5Pclose_class( SEXP _class ) {
280: /* /\* /\\* herr_t H5Pset_fclose_degree(hid_t fapl_id, H5F_close_degree_t fc_degree) *\\/ *\/ */
283: /* /\*   TODO: H5F_close_degree_t fc_degree = _fc_degree *\/ */
284: /* /\*   herr_t herr = H5Pset_fclose_degree(hid_tfapl_id, H5F_close_degree_tfc_degree); *\/ */
289: /* /\* herr_t H5Pget_fclose_degree(hid_t fapl_id, H5F_close_degree_t * fc_degree) *\/ */
292: /*   TODO: H5F_close_degree_t * fc_degree = _fc_degree */
293: /*   herr_t herr = H5Pget_fclose_degree(hid_tfapl_id, H5F_close_degree_t *fc_degree); */
1836: ...(70 bytes skipped)...P_cls_create_func_t create, void * create_data, H5P_cls_copy_func_t copy, void * copy_data, H5P_cls_close_func_t close, void * close_data) *\/ */
1837: ...(26 bytes skipped)...SEXP _parent_class, SEXP _name, SEXP _create, SEXP _create_data, SEXP _copy, SEXP _copy_data, SEXP _close, SEXP _close_data ) { */
1844: /*   TODO: H5P_cls_close_func_t close = _close */
1845: /*   TODO: void * close_data = _close_data */
1846: ...(68 bytes skipped)..., H5P_cls_create_func_tcreate, void *create_data, H5P_cls_copy_func_tcopy, void *copy_data, H5P_cls_close_func_tclose, void *close_data); */
1852: ...(130 bytes skipped)...func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t delete, H5P_prp_copy_func_t copy, H5P_prp_close_func_t close) *\/ */
1853: ...(43 bytes skipped)...ame, SEXP _size, SEXP _default, SEXP _create, SEXP _set, SEXP _get, SEXP _delete, SEXP _copy, SEXP _close ) { */
1863: /*   TODO: H5P_prp_close_func_t close = _close */
1864: ...(126 bytes skipped)...set_func_tset, H5P_prp_get_func_tget, H5P_prp_delete_func_tdelete, H5P_prp_copy_func_tcopy, H5P_prp_close_func_tclose); */
1869: ...(162 bytes skipped)...et, H5P_prp_delete_func_t delete, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) *\/ */
1870: ...(58 bytes skipped)..., SEXP _default, SEXP _create, SEXP _set, SEXP _get, SEXP _delete, SEXP _copy, SEXP _compare, SEXP _close ) { */
1881: /*   TODO: H5P_prp_close_func_t close = _close */
1882: ...(157 bytes skipped)..._tget, H5P_prp_delete_func_tdelete, H5P_prp_copy_func_tcopy, H5P_prp_compare_func_tcompare, H5P_prp_close_func_tclose); */
1887: ...(95 bytes skipped)...func_t set, H5P_prp_get_func_t get, H5P_prp_delete_func_t delete, H5P_prp_copy_func_t copy, H5P_prp_close_func_t close) *\/ */
1888: ...(24 bytes skipped)...P _plid, SEXP _name, SEXP _size, SEXP _value, SEXP _set, SEXP _get, SEXP _delete, SEXP _copy, SEXP _close ) { */
1897: /*   TODO: H5P_prp_close_func_t close = _close */
1898: ...(92 bytes skipped)...set_func_tset, H5P_prp_get_func_tget, H5P_prp_delete_func_tdelete, H5P_prp_copy_func_tcopy, H5P_prp_close_func_tclose); */
1903: ...(127 bytes skipped)...et, H5P_prp_delete_func_t delete, H5P_prp_copy_func_t copy, H5P_prp_compare_func_t compare, H5P_prp_close_func_t close) *\/ */
1904: ...(39 bytes skipped)...name, SEXP _size, SEXP _value, SEXP _set, SEXP _get, SEXP _delete, SEXP _copy, SEXP _compare, SEXP _close ) { */
1914: /*   TODO: H5P_prp_close_func_t close = _close */
1915: ...(123 bytes skipped)..._tget, H5P_prp_delete_func_tdelete, H5P_prp_copy_func_tcopy, H5P_prp_compare_func_tcompare, H5P_prp_close_func_tclose); */
44: /* herr_t H5Pclose(hid_t plist ) */
47:     herr_t herr = H5Pclose( plist );
281: /* /\* SEXP _H5Pset_fclose_degree( SEXP _fapl_id, SEXP _fc_degree ) { *\/ */
290: /* SEXP _H5Pget_fclose_degree( SEXP _fapl_id, SEXP _fc_degree ) { */
2043: /* herr_t H5Pclose_class( hid_t class ) */
2046:     herr_t herr = H5Pclose_class( class );
rhdf5:R/H5S.R: [ ]
77: H5Sclose <- function( h5space ) {
69: #' Close and release a dataspace
72: #' dataspace to be closed.
79:   invisible(.Call("_H5Sclose", h5space@ID, PACKAGE='rhdf5'))
281: #' H5Sclose(sid_1)
377: #' H5Sclose(sid_1)
378: #' H5Sclose(sid_2)
486: #' H5Sclose(sid_1)
487: #' H5Sclose(sid_2)
488: #' H5Sclose(sid_3)
rhdf5:R/H5D.R: [ ]
85: H5Dclose <- function( h5dataset ) {
60: #' ## rember to close open handles
79: #' Close an open HDF5 dataset
48: #' To prevent memory leaks this must be closed with a call to [H5Dclose()] 
61: #' H5Dclose( did )
62: #' H5Fclose( fid )
87:   invisible(.Call("_H5Dclose", h5dataset@ID, PACKAGE='rhdf5'))
167:     on.exit(H5Aclose(att))
rhdf5:R/H5A.R: [ ]
130: H5Aclose <- function( h5attribute ) {
123: #' Close an HDF5 attribute
126: #' the attribute to be closed.  Normally created by [H5Aopen()] or similar.
132:   invisible(.Call("_H5Aclose", h5attribute@ID, PACKAGE='rhdf5'))
rhdf5:src/H5D.c: [ ]
97: SEXP _H5Dclose( SEXP _dataset_id ) {
921:     // close data type
924:     // close mem space
932:     // close file space 
96: /* herr_t H5Dclose(hid_t dataset_id ) */
100:     herr_t herr = H5Dclose( dataset_id );
818:     herr_t status = H5Tclose(dtype_id);
922:     H5Tclose(dtype_id);
926:         H5Sclose(mem_space_id);
934:         H5Sclose(file_space_id);
rhdf5:R/H5F.R: [ ]
97: H5Fclose <- function( h5file ) {
91: #' Close access to an HDF5 file
30:         ## create a new property list, and make sure it is closed
32:         on.exit(H5Pclose(fapl))
76:     on.exit(H5Pclose(fapl))
99:   invisible(.Call("_H5Fclose", h5file@ID, PACKAGE='rhdf5'))
219: #' H5Dclose(did)
220: #' H5Gclose(gid)
221: #' H5Fclose(fid)
rhdf5:src/H5S.c: [ ]
28: SEXP _H5Sclose( SEXP _space_id ) {
27: /* herr_t H5Sclose( hid_t space_id ) */
30:     herr_t herr = H5Sclose( space_id );
rhdf5:src/H5A.c: [ ]
79: SEXP _H5Aclose( SEXP _attr_id ) {
392:   // close mem space
398:   // close file space
78: /* herr_t H5Aclose(hid_t attr_id) */
81:   herr_t herr = H5Aclose( attr_id );
393:   H5Sclose(mem_space_id);
399:   H5Sclose(file_space_id);
rhdf5:R/H5G.R: [ ]
79: H5Gclose <- function( h5group ) {
73: #' Close a specified group
31: #' is closed.
55: #' with [H5Gclose()] to prevent resource leakage.
57: #' @seealso [H5Gclose()]
81:   invisible(.Call("_H5Gclose", h5group@ID, PACKAGE='rhdf5'))
103: #' H5Gclose(gid)
110: #' H5Fclose(fid)
rhdf5:src/H5F.c: [ ]
52: SEXP _H5Fclose( SEXP _file_id ) {
51: /* herr_t H5Fclose( hid_t file_id ) */
54:   herr_t herr = H5Fclose( file_id );
rhdf5:src/H5G.c: [ ]
48: SEXP _H5Gclose( SEXP _group_id ) {
47: /* herr_t H5Gclose(hid_t group_id) */
51:   herr_t herr = H5Gclose( group_id );
rhdf5:R/H5O.R: [ ]
49: H5Oclose <- function( h5obj ) {
41: #' Close an HDF5 object
22: #' H5Oclose(oid)
23: #' H5Fclose(fid)
25: #' @seealso [H5Oclose()]
51:   invisible(.Call("_H5Oclose", h5obj@ID, PACKAGE='rhdf5'))
81: #' H5Gclose(gid)
82: #' H5Fclose(fid)
rhdf5:src/H5O.c: [ ]
65: SEXP _H5Oclose( SEXP _object_id ) {
67:   herr_t herr = H5Oclose( object_id );
128:     //  H5Oclose(oid);
135:     H5Fclose(loc_id);
rhdf5filters:src/bzip2/bzip2-1.0.8/bzip2recover.c: [ ]
218: static void bsClose ( BitStream* bs )
233:    retVal = fclose ( bs->handle );
413:    bsClose ( bsIn );
460:             bsClose ( bsWr );
rhdf5:R/h5checktype.R: [ ]
170: h5closeitLoc <- function(file, fctname = deparse(match.call()[1])) {
212: h5closeitObj <- function(obj, fctname = deparse(match.call()[1])) {
113:         "Run 'h5closeAll()' to close all open HDF5 object handles.")
123:         res$closeit = TRUE
132:           res$closeit = TRUE
139:     ## We have passed an H5IdComponent, so it should not be closed after  
142:     res$closeit = FALSE
158:       res$closeit = TRUE
162:   ## We have passed an H5IdComponent, so it should not be closed after  
165:     res$closeit = FALSE
172:   if (file$closeit) {
174:       res = H5Fclose(file$H5Identifier)
200:         res$closeit = TRUE
203:     h5closeitLoc(loc)   
207:     res$closeit = FALSE
214:   if (obj$closeit) {
216:       res = H5Oclose(obj$H5Identifier)
252:     H5Pclose_class(h5plc)
rhdf5filters:src/blosc/lib/zstd-1.4.5/common/bitstream.h: [ ]
254: MEM_STATIC size_t BIT_closeCStream(BIT_CStream_t* bitC)
82: *  Last operation is to close the bitStream.
68: MEM_STATIC size_t BIT_closeCStream(BIT_CStream_t* bitC);
238:  *  overflow will be revealed later on using BIT_closeCStream() */
251: /*! BIT_closeCStream() :
rhdf5filters:src/blosc/lib/zstd-1.4.5/compress/zstd_compress.c: [ ]
1412: static int ZSTD_indexTooCloseToMax(ZSTD_window_t w)
1404: /* ZSTD_indexTooCloseToMax() :
1454:         if (ZSTD_indexTooCloseToMax(zc->blockState.matchState.window)) {
rhdf5:man/H5Dclose.Rd: [ ]
5: \title{Close an open HDF5 dataset}
14: Close an open HDF5 dataset
3: \name{H5Dclose}
4: \alias{H5Dclose}
7: H5Dclose(h5dataset)
rhdf5:man/H5Oclose.Rd: [ ]
5: \title{Close an HDF5 object}
14: Close an HDF5 object
3: \name{H5Oclose}
4: \alias{H5Oclose}
7: H5Oclose(h5obj)
rhdf5:man/H5Sclose.Rd: [ ]
5: \title{Close and release a dataspace}
14: Close and release a dataspace
3: \name{H5Sclose}
4: \alias{H5Sclose}
7: H5Sclose(h5space)
11: dataspace to be closed.}
rhdf5:man/H5Fclose.Rd: [ ]
5: \title{Close access to an HDF5 file}
14: Close access to an HDF5 file
3: \name{H5Fclose}
4: \alias{H5Fclose}
7: H5Fclose(h5file)
rhdf5:man/H5Gclose.Rd: [ ]
5: \title{Close a specified group}
14: Close a specified group
3: \name{H5Gclose}
4: \alias{H5Gclose}
7: H5Gclose(h5group)
rhdf5:man/H5Aclose.Rd: [ ]
5: \title{Close an HDF5 attribute}
14: Close an HDF5 attribute
3: \name{H5Aclose}
4: \alias{H5Aclose}
7: H5Aclose(h5attribute)
11: the attribute to be closed.  Normally created by \code{\link[=H5Aopen]{H5Aopen()}} or similar.}
rhdf5:man/H5Pclose.Rd: [ ]
5: \title{Close and release a property list}
11: to close.}
3: \name{H5Pclose}
4: \alias{H5Pclose}
7: H5Pclose(h5plist)
14: \code{H5Pclose()} terminates access to a property list. All property lists
15: should be closed when they no longer need to be accessed. This
16: frees resources used by the property list.  Failing to call \code{H5Pclose()}
rhdf5:man/h5closeAll.Rd: [ ]
5: \title{Close all open HDF5 handles}
17: \code{\link[=H5close]{H5close()}}.
29: ## close all open identifiers and verify
3: \name{h5closeAll}
4: \alias{h5closeAll}
7: h5closeAll()
15: and not closed correctly.  This function identifies all open handles and
16: closes them.  It replaces the functionality previously supplied by
23: h5createFile("ex_h5closeAll.h5")
24: H5Fopen("ex_h5closeAll.h5")
30: h5closeAll()
rhdf5:tests/testthat/test_H5close.R: [ ]
16: # H5close()
29: # H5Fclose(fid)
rhdf5filters:src/blosc/lib/zstd-1.4.5/compress/zstd_compress_internal.h: [ ]
217:                                 * There is no guarantee that hint is close to actual source size */
rhdf5:R/H5S_extras.R: [ ]
30: #' ## always close dataspaces after usage to free resources
31: #' H5Sclose(sid)
rhdf5filters:src/blosc/lib/zstd-1.4.5/zstd.h: [ ]
654:     ZSTD_e_end=2       /* flush any remaining data _and_ close current frame.
1517:  * There is no guarantee that hint is close to actual source size,
655:                         * note that frame is only closed after compressed data is fully flushed (return value == 0).
rhdf5filters:src/blosc/lib/lz4-1.9.2/lz4.c: [ ]
997:             /* the match was too close to the end, rewind and go to last literals */
rhdf5filters:src/bzip2/bzip2-1.0.8/bzip2.c: [ ]
968:    if (fp == NULL) close(fh);
360:    BZ2_bzWriteClose64 ( &bzerr, bzf, 0, 
372:       ret = fclose ( zStream );
378:    ret = fclose ( stream );
410:    BZ2_bzWriteClose64 ( &bzerr_dummy, bzf, 1, 
476:       BZ2_bzReadClose ( &bzerr, bzf );
482:    closeok:
489:    ret = fclose ( zStream );
496:       ret = fclose ( stream );
514:       goto closeok;
518:    BZ2_bzReadClose ( &bzerr_dummy, bzf );
532:          if (zStream != stdin) fclose(zStream);
533:          if (stream != stdout) fclose(stream);
591:       BZ2_bzReadClose ( &bzerr, bzf );
598:    ret = fclose ( zStream );
605:    BZ2_bzReadClose ( &bzerr_dummy, bzf );
625:          if (zStream != stdin) fclose(zStream);
708:             fclose ( outputHandleJustInCase );
944:    if (tmp != NULL) fclose ( tmp );
1019:    fclose()ing it again.  So we have to assume that the fopen() call
1250:             if ( inStr != NULL ) fclose ( inStr );
1268:             if ( inStr != NULL ) fclose ( inStr );
1275:             if ( outStr != NULL ) fclose ( outStr );
1433:             if ( inStr != NULL ) fclose ( inStr );
1445:             if ( inStr != NULL ) fclose ( inStr );
1452:             if ( outStr != NULL ) fclose ( outStr );
rhdf5filters:src/blosc/lib/blosc-1.20.1/blosc.c: [ ]
505:   /* Make the level 8 close enough to maxCLevel */
721:   }  /* Closes j < nsplits */
792:   } /* Closes j < nsplits */
1860:     } /* closes while (nblock_) */
rhdf5filters:src/blosc/lib/snappy-1.1.1/snappy.cc: [ ]
353:       // more times.  (The exception is that when we're close to exhausting
363:       // If we get close to exhausting the input then goto emit_remainder.
412:       // this loop via goto if we get close to exhausting the input.
rhdf5filters:src/blosc/lib/zstd-1.4.5/common/fse.h: [ ]
400: Finally, you must close the bitStream.
404:     size_t size = BIT_closeCStream(&bitStream);
rhdf5filters:src/blosc/lib/zstd-1.4.5/decompress/zstd_decompress_block.c: [ ]
586:         /* close range match, overlap */
642:         /* Wildcopy until we get close to the end. */
rhdf5:src/printdatatype.c: [ ]
428: /*                 /\* Close array base type *\/ */
259: /*                 H5Tclose(str_type); */
288: /*                 H5Tclose(str_type); */
289: /*                 H5Tclose(tmp_type); */
400: /*                 H5Tclose(super); */
429: /*                 H5Tclose(super); */
rhdf5:src/wrap.c: [ ]
30: SEXP _H5close(void);
36:   {"_H5close", (DL_FUNC) &_H5close, 0},
47:   {"_H5Aclose", (DL_FUNC) &_H5Aclose, 1},
54:   {"_H5Dclose", (DL_FUNC) &_H5Dclose, 1},
65:   {"_H5Fclose", (DL_FUNC) &_H5Fclose, 1},
75:   {"_H5Gclose", (DL_FUNC) &_H5Gclose, 1},
85:   {"_H5Oclose", (DL_FUNC) &_H5Oclose, 1},
103:   {"_H5Sclose", (DL_FUNC) &_H5Sclose, 1},
130:   {"_H5Pclose", (DL_FUNC) &_H5Pclose, 1},
131:   {"_H5Pclose_class", (DL_FUNC) &_H5Pclose_class, 1},
150:   /* {"_H5Pset_fclose_degree", (DL_FUNC) &_H5Pset_fclose_degree, 2}, */
151:   /* {"_H5Pget_fclose_degree", (DL_FUNC) &_H5Pget_fclose_degree, 2}, */
rhdf5filters:src/blosc/lib/blosc-1.20.1/blosclz.c: [ ]
460:     // If match is close, let's reduce the minimum length to encode it
642:     // If match is close, let's reduce the minimum length to encode it
rhdf5filters:src/bzip2/bzip2-1.0.8/blocksort.c: [ ]
794:    /*-- (emphasises close relationship of block & quadrant) --*/
rhdf5:src/H5.h: [ ]
11: SEXP _H5close(void);
rhdf5:src/H5P.h: [ ]
241: ...(26 bytes skipped)...SEXP _parent_class, SEXP _name, SEXP _create, SEXP _create_data, SEXP _copy, SEXP _copy_data, SEXP _close, SEXP _close_data ); */
242: ...(43 bytes skipped)...ame, SEXP _size, SEXP _default, SEXP _create, SEXP _set, SEXP _get, SEXP _delete, SEXP _copy, SEXP _close ); */
243: ...(58 bytes skipped)..., SEXP _default, SEXP _create, SEXP _set, SEXP _get, SEXP _delete, SEXP _copy, SEXP _compare, SEXP _close ); */
244: ...(24 bytes skipped)...P _plid, SEXP _name, SEXP _size, SEXP _value, SEXP _set, SEXP _get, SEXP _delete, SEXP _copy, SEXP _close ); */
245: ...(39 bytes skipped)...name, SEXP _size, SEXP _value, SEXP _set, SEXP _get, SEXP _delete, SEXP _copy, SEXP _compare, SEXP _close ); */
19: SEXP _H5Pclose( SEXP _plist );
48: /* SEXP _H5Pset_fclose_degree( SEXP _fapl_id, SEXP _fc_degree ); */
49: /* SEXP _H5Pget_fclose_degree( SEXP _fapl_id, SEXP _fc_degree ); */
259: SEXP _H5Pclose_class( SEXP _class );
rhdf5:configure.win: [ ]
6:              close(out_file);'
rhdf5:man/H5functions.Rd: [ ]
6: \alias{H5close}
13: H5close()
22: \item \code{H5close} flushes all data to disk, closes all open identifiers, and cleans up memory.
33:   H5close()
rhdf5:man/H5Dopen.Rd: [ ]
34: ## rember to close open handles
19: To prevent memory leaks this must be closed with a call to \code{\link[=H5Dclose]{H5Dclose()}}
35: H5Dclose( did )
36: H5Fclose( fid )
rhdf5:man/H5Sselect_index.Rd: [ ]
40: ## always close dataspaces after usage to free resources
41: H5Sclose(sid)
rhdf5:NAMESPACE: [ ]
141: export(H5close)
19: export(H5Aclose)
32: export(H5Dclose)
42: export(H5Fclose)
51: export(H5Gclose)
67: export(H5Oclose)
72: export(H5Pclose)
116: export(H5Sclose)
145: export(h5closeAll)
rhdf5:CHANGES: [ ]
147: - New low level general library functions H5open, H5close, H5garbage_collect, and H5get_libversion implemented.
108: - Added low level functions H5Pcreate, H5Pcopy, H5Pget_class, H5Pclose, H5Pclose_class