From c90c783158e86a668e0450830e875539709863a3 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Sat, 20 Jul 2024 12:38:36 +0200 Subject: [PATCH] fixup! Deprecate `Base.convert(IOStream, ::Message)` --- src/message.jl | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/message.jl b/src/message.jl index 76115f5..386399b 100644 --- a/src/message.jl +++ b/src/message.jl @@ -33,22 +33,17 @@ behaviour. ```jldoctest julia> using ZMQ -julia> m = Message("foo") -3-element Message: - 102 - 111 - 111 +julia> m = Message("foo"); -julia> m[1] # Array indexing -102 +julia> Char(m[1]) # Array indexing +'f': ASCII/Unicode U+0066 (category Ll: Letter, lowercase) -julia> m[end] = 103 # Array assignment -103 +julia> m[end] = Int('g'); # Array assignment -julia> unsafe_string(m) # Conversion to string (only do this if you know the message is a string) +julia> unsafe_string(m) # Conversion to string (only do this if you know the message is a string) "fog" -julia> IOBuffer(m) # Create a zero-copy IOBuffer +julia> IOBuffer(m) # Create a zero-copy IOBuffer IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=3, maxsize=Inf, ptr=1, mark=-1) ``` """