diff --git a/MRIFiles/Project.toml b/MRIFiles/Project.toml index a69bcbef..d3ecfe7a 100644 --- a/MRIFiles/Project.toml +++ b/MRIFiles/Project.toml @@ -1,7 +1,7 @@ name = "MRIFiles" uuid = "5a6f062f-bf45-497d-b654-ad17aae2a530" author = ["Tobias Knopp "] -version = "0.3.1" +version = "0.3.2" [deps] Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" diff --git a/MRIFiles/src/ISMRMRD/HDF5Types.jl b/MRIFiles/src/ISMRMRD/HDF5Types.jl index d4b9c27c..b5d43ccb 100644 --- a/MRIFiles/src/ISMRMRD/HDF5Types.jl +++ b/MRIFiles/src/ISMRMRD/HDF5Types.jl @@ -245,7 +245,7 @@ function writeProfiles(file, dataset, profiles::Vector{Profile}) #for some reason this is stored as float d = HVL_T(2*length(profiles[l].data), pointer(reinterpret(Float32,profiles[l].data))) - iobuf = IOBuffer() + iobuf = IOBuffer(sizehint=ISMRMRD_HEADER_PLUS_POINTERS_SIZE) write(iobuf, profiles[l].head ) write(iobuf, t ) write(iobuf, d)