google / google/protobuf.dart

verify that byte arrays are handled consistently

Open
#45 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
572
Forks
196
Avg merge
1h 59m
Merged PRs (30d)
2

Description

Byte array fields are treated in some ways like repeated fields.
- They are stored in a mutable List
- hasField() returns false if they're empty.
- an empty byte array doesn't change the hashCode (versus null)

In other ways they're treated differently: you can use setField() to replace a byte array.
It seems like the corner cases need to be tested better, particular for events.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.