File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ public readonly struct ProtoWireValue
12
12
[ FieldOffset ( 0 ) ] private readonly string ? _stringValue ;
13
13
[ FieldOffset ( 0 ) ] private readonly byte [ ] ? _bytesValue ;
14
14
[ FieldOffset ( 0 ) ] private readonly ProtoWireObject ? _message ;
15
- [ FieldOffset ( 0 ) ] private readonly int [ ] _int32ArrayValue ;
16
- [ FieldOffset ( 0 ) ] private readonly long [ ] _int64ArrayValue ;
15
+ [ FieldOffset ( 0 ) ] private readonly int [ ] ? _int32ArrayValue ;
16
+ [ FieldOffset ( 0 ) ] private readonly long [ ] ? _int64ArrayValue ;
17
17
[ FieldOffset ( 8 ) ] private readonly int _int32Value ;
18
18
[ FieldOffset ( 8 ) ] private readonly long _int64Value ;
19
19
[ FieldOffset ( 16 ) ] private readonly ProtoWireValueType _type ;
@@ -68,9 +68,9 @@ public ProtoWireValue(long value)
68
68
69
69
public ProtoWireObject MessageValue => _type == ProtoWireValueType . Message ? _message ! : ProtoWireObject . Empty ;
70
70
71
- public int [ ] Int32ArrayValue => _type == ProtoWireValueType . Int32Array ? _int32ArrayValue : Array . Empty < int > ( ) ;
71
+ public int [ ] Int32ArrayValue => _type == ProtoWireValueType . Int32Array ? _int32ArrayValue ! : Array . Empty < int > ( ) ;
72
72
73
- public long [ ] Int64ArrayValue => _type == ProtoWireValueType . Int64Array ? _int64ArrayValue : Array . Empty < long > ( ) ;
73
+ public long [ ] Int64ArrayValue => _type == ProtoWireValueType . Int64Array ? _int64ArrayValue ! : Array . Empty < long > ( ) ;
74
74
75
75
public int Int32Value => _type == ProtoWireValueType . Int32 ? _int32Value : default ;
76
76
You can’t perform that action at this time.
0 commit comments