|
277 | 277 | write_impl(parent::Union{HDF5.File, HDF5.Group}, name::AbstractString, data::SubArray; kwargs...) = |
278 | 278 | write_impl(parent, name, copy(data); kwargs...) |
279 | 279 |
|
280 | | -function write_impl( |
281 | | - parent::Union{HDF5.File, HDF5.Group}, |
282 | | - name::AbstractString, |
283 | | - data::Union{BitArray, AbstractArray{Bool}}, |
284 | | - ; |
285 | | - extensible::Bool=false, |
286 | | - compress::UInt8=0x9, |
287 | | - kwargs..., |
288 | | -) |
289 | | - dtype = _datatype(Bool) |
290 | | - write_impl_array(parent, name, Array{UInt8}(data), dtype, size(data), compress) |
291 | | -end |
292 | | - |
293 | 280 | function write_impl( |
294 | 281 | parent::Union{HDF5.File, HDF5.Group}, |
295 | 282 | name::AbstractString, |
@@ -346,6 +333,18 @@ function write_impl( |
346 | 333 | write_impl_array(parentgrp, name, data, dtype, dims, compress) |
347 | 334 | end |
348 | 335 |
|
| 336 | +function write_impl_array( |
| 337 | + parent::Union{HDF5.File, HDF5.Group}, |
| 338 | + name::AbstractString, |
| 339 | + data::Union{BitArray, AbstractArray{Bool}}, |
| 340 | + dtype::HDF5.Datatype, |
| 341 | + dims::Union{Tuple{Vararg{<:Integer}}, Tuple{Tuple{Vararg{<:Integer, N}}, Tuple{Vararg{<:Integer, N}}}}, |
| 342 | + compress::UInt8, |
| 343 | +) where N |
| 344 | + dtype = _datatype(Bool) |
| 345 | + write_impl_array(parent, name, Array{UInt8}(data), dtype, dims, compress) |
| 346 | +end |
| 347 | + |
349 | 348 | function write_impl_array( |
350 | 349 | parent::Union{HDF5.File, HDF5.Group}, |
351 | 350 | name::AbstractString, |
|
0 commit comments