mirror of
https://gitea.invidious.io/iv-org/protodec.git
synced 2024-08-15 00:43:18 +00:00
Update dependencies
This commit is contained in:
parent
041d0000b7
commit
e9df06c262
2 changed files with 4 additions and 1 deletions
|
@ -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 a new issue