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