[Yunq] Add parse/serialize for i64 field along with tests.
This commit is contained in:
parent
e83720e67c
commit
a1f0197e83
9 changed files with 187 additions and 2 deletions
|
|
@ -29,6 +29,12 @@ glcr::ErrorOr<uint64_t> MessageView::ReadField<uint64_t>(
|
|||
return buffer_.At<uint64_t>(field_offset(field_index));
|
||||
}
|
||||
|
||||
template <>
|
||||
glcr::ErrorOr<int64_t> MessageView::ReadField<int64_t>(
|
||||
uint64_t field_index) const {
|
||||
return buffer_.At<int64_t>(field_offset(field_index));
|
||||
}
|
||||
|
||||
template <>
|
||||
glcr::ErrorOr<glcr::String> MessageView::ReadField<glcr::String>(
|
||||
uint64_t field_index) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue