Use IO::Memory for creating continuation tokens

This commit is contained in:
Omar Roth
2019-02-04 15:17:10 -06:00
parent ed8a9af355
commit 276662a147
5 changed files with 101 additions and 79 deletions

View File

@@ -282,7 +282,7 @@ def write_var_int(value : Int)
end
end
return bytes
return Slice.new(bytes.to_unsafe, bytes.size)
end
def sha256(text)