Rename appendValue to writeValue for consistency

This commit is contained in:
Zahary Karadjov 2020-05-06 15:41:28 +03:00
parent d7ed9c84d3
commit dccba1e22b
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ template borrowSerialization*(Alias: distinct type,
mixin readValue mixin readValue
value = Alias reader.readValue(OriginalType) value = Alias reader.readValue(OriginalType)
template appendValue*(stream: OutputStream, Format: type, value: auto) = template writeValue*(stream: OutputStream, Format: type, value: auto) =
mixin WriterType, init, writeValue mixin WriterType, init, writeValue
var writer = init(WriterType(Format), stream) var writer = init(WriterType(Format), stream)
writeValue writer, value writeValue writer, value