You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ChunkCodecCore/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
7
7
## Unreleased
8
8
9
+
### BREAKING `can_concatenate` is now a decoder method instead of a `Codec` method [#73](https://github.com/JuliaIO/ChunkCodecs.jl/pull/73)
10
+
9
11
### BREAKING the return type of `try_encode`, `try_decode`, and `try_resize_decode!` changed to a new `MaybeSize` type [#72](https://github.com/JuliaIO/ChunkCodecs.jl/pull/72)
Copy file name to clipboardExpand all lines: ChunkCodecCore/src/types.jl
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,6 @@ Properties are public for reading.
7
7
8
8
Required methods for a type `T <: Codec` to implement:
9
9
- `decode_options(::T)::DecodeOptions`
10
-
11
-
Optional methods to implement:
12
-
- `can_concatenate(::T)::Bool`: defaults to `false`.
13
10
"""
14
11
abstract type Codec end
15
12
@@ -51,6 +48,7 @@ Required methods for a type `T <: DecodeOptions` to implement:
51
48
52
49
Optional methods to implement:
53
50
- `is_thread_safe(::T)::Bool`: defaults to `false`.
51
+
- `can_concatenate(::T)::Bool`: defaults to `false`.
54
52
- `try_resize_decode!(::T, dst::AbstractVector{UInt8}, src::AbstractVector{UInt8}, max_size::Int64; kwargs...)::MaybeSize`: defaults to using `try_decode!` and `try_find_decoded_size`
0 commit comments