diff --git a/src/TranscodingStreams.jl b/src/TranscodingStreams.jl index 8bdeb28..10173d9 100644 --- a/src/TranscodingStreams.jl +++ b/src/TranscodingStreams.jl @@ -16,6 +16,7 @@ include("stream.jl") include("io.jl") include("noop.jl") include("transcode.jl") +include("deprecated.jl") function test_roundtrip_read end function test_roundtrip_write end diff --git a/src/deprecated.jl b/src/deprecated.jl new file mode 100644 index 0000000..51a88ed --- /dev/null +++ b/src/deprecated.jl @@ -0,0 +1 @@ +Base.@deprecate Memory(data::ByteData) Memory(pointer(data), sizeof(data)) false \ No newline at end of file diff --git a/src/memory.jl b/src/memory.jl index 81eceb8..35c3949 100644 --- a/src/memory.jl +++ b/src/memory.jl @@ -11,11 +11,6 @@ struct Memory size::UInt end -# TODO remove this method -function Memory(data::ByteData) - return Memory(pointer(data), sizeof(data)) -end - @inline function Base.length(mem::Memory) return mem.size end