Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces new methods for reading and writing arrays of various data types in the
Reader
andWriter
classes. It also includes corresponding test cases to ensure the new methods work correctly.New Methods for Reading Arrays:
reader.go
: Added methods to read arrays ofuint8
,uint16
,uint32
,uint64
, anduint
(ReadUint8s
,ReadUint16s
,ReadUint32s
,ReadUint64s
,ReadUints
).reader.go
: Added methods to read arrays ofint8
,int16
,int32
,int64
, andint
(ReadInt8s
,ReadInt16s
,ReadInt32s
,ReadInt64s
,ReadInts
).reader.go
: Added methods to read arrays offloat32
andfloat64
(ReadFloat32s
,ReadFloat64s
).reader.go
: Added method to read arrays ofstring
(ReadStrings
).New Methods for Writing Arrays:
writer.go
: Added methods to write arrays ofuint8
,uint16
,uint32
,uint64
, anduint
(WriteUint8s
,WriteUint16s
,WriteUint32s
,WriteUint64s
,WriteUints
).writer.go
: Added methods to write arrays ofint8
,int16
,int32
,int64
, andint
(WriteInt8s
,WriteInt16s
,WriteInt32s
,WriteInt64s
,WriteInts
).writer.go
: Added methods to write arrays offloat32
andfloat64
(WriteFloat32s
,WriteFloat64s
).writer.go
: Added method to write arrays ofstring
(WriteStrings
).Test Cases:
writer_test.go
: Added test cases for the new array read and write methods, includingfloat32s
,float64s
,uint8s
,uint16s
,uint32s
,uint64s
,uints
,int8s
,int16s
,int32s
,int64s
,ints
, andstrings
.