You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple API to read an array of primitive types.
Simple API to write an array of primitive types.
Primitive types including: integers signed and unsigned, decimals (single and double).
Description
DataWriter and DataReader already have APIs to read and write primitive types. If we want to read a simple collection of them, we need to create a loop. The exception is a byte array.
Support reading and writing arrays in DataReader and DataWriter, similar to the ReadBytes() and Write(byte[]) methods. Use spans in the writing side if possible.
Consider supporting strings and chars as well.
Acceptance criteria
One method to write array of primitive types
One method to read array of primitive types
The text was updated successfully, but these errors were encountered:
Goal
Simple API to read an array of primitive types.
Simple API to write an array of primitive types.
Primitive types including: integers signed and unsigned, decimals (single and double).
Description
DataWriter
andDataReader
already have APIs to read and write primitive types. If we want to read a simple collection of them, we need to create a loop. The exception is a byte array.The goal is to simplify these use cases:
Proposed solution
Support reading and writing arrays in
DataReader
andDataWriter
, similar to theReadBytes()
andWrite(byte[])
methods. Use spans in the writing side if possible.Consider supporting strings and chars as well.
Acceptance criteria
The text was updated successfully, but these errors were encountered: