mirror of
https://github.com/iv-org/protodec.git
synced 2024-12-21 21:55:25 -05:00
Update dependencies
This commit is contained in:
parent
041d0000b7
commit
e9df06c262
@ -8,6 +8,6 @@ targets:
|
||||
protodec:
|
||||
main: src/protodec.cr
|
||||
|
||||
crystal: 0.31.1
|
||||
crystal: 0.34.0
|
||||
|
||||
license: GPLv3
|
||||
|
@ -213,6 +213,9 @@ module Protodec
|
||||
when "bytes"
|
||||
VarLong.to_io(io, value.size.to_i64)
|
||||
value.as_a.each { |byte| io.write_byte byte.as_i.to_u8 }
|
||||
else # "string"
|
||||
VarLong.to_io(io, value.to_s.bytesize.to_i64)
|
||||
io.print value.to_s
|
||||
end
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user