Skip to content

Commit e5ec476

Browse files
authored
FixedSizeArrays: Do not access private field (#24)
1 parent c898b17 commit e5ec476

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ Any new features, or breaking changes, will be written in this file.
44
Bugfixes, internal refactors, documentation improvements and style changes will
55
not be mentioned here, because they do not impact how the package is to be used.
66

7+
## 0.3.3
8+
### New features
9+
* Add a new `split_each` function, which iterates over memory views delimited
10+
by a single element delimiter.
11+
12+
### Other changes
13+
* Add some more fast methods for Memory/Vector/MemoryView interop
14+
* Add a fast method for `Base.readbytes!` reading into a memory view
15+
16+
717
## 0.3.2
818
* Support FixedSizeArrays
919
* Various bugfixes and optimisations

ext/FixedSizeArraysExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ using FixedSizeArrays: FixedSizeArray
44
using MemoryViews: MemoryViews, MemoryView, MemoryKind, MutableMemoryView
55

66
MemoryViews.MemoryKind(::Type{<:FixedSizeArray{T, N, M}}) where {T, N, M} = MemoryKind(M)
7-
MemoryViews.MemoryView(x::FixedSizeArray) = MemoryView(x.mem)
7+
MemoryViews.MemoryView(x::FixedSizeArray) = MemoryView(parent(x))
88

99
end # module

0 commit comments

Comments
 (0)