@@ -131,10 +131,10 @@ public bool Write(ref BytePayloadWriter writer, TNative input, bool absolute = t
131131 {
132132 byte header = 0 ;
133133
134- Span < float > floats = stackalloc float [ NumComponents ] ;
135- CopyTo ( in input , floats ) ;
134+ Span < float > values = stackalloc float [ NumComponents ] ;
135+ CopyTo ( in input , values ) ;
136136
137- bool isUniform = FastMath . AllComponentsEqual ( floats ) ;
137+ bool isUniform = FastMath . AllComponentsEqual ( values ) ;
138138
139139 if ( input . Equals ( Default ) ||
140140 input . Equals ( UnitX ) ||
@@ -172,7 +172,7 @@ public bool Write(ref BytePayloadWriter writer, TNative input, bool absolute = t
172172 return true ;
173173 }
174174
175- HeaderData data = _Internal_CreateHeaderWithType ( ref floats , true , absolute ) ;
175+ HeaderData data = _Internal_CreateHeaderWithType ( ref values , true , absolute ) ;
176176 bool written = true ;
177177
178178 header = data . Header ;
@@ -185,7 +185,7 @@ public bool Write(ref BytePayloadWriter writer, TNative input, bool absolute = t
185185 for ( int i = 0 ; i < NumComponents ; i ++ )
186186 {
187187 // State which components are being sent
188- if ( floats [ i ] != 0 )
188+ if ( values [ i ] != 0 )
189189 components |= ( byte ) ( 1 << i ) ;
190190 }
191191
@@ -197,7 +197,7 @@ public bool Write(ref BytePayloadWriter writer, TNative input, bool absolute = t
197197
198198 for ( int i = 0 ; i < NumComponents ; i ++ )
199199 {
200- int value = FastMath . QuantizeToInt ( floats [ i ] , 4 ) ;
200+ int value = FastMath . QuantizeToInt ( values [ i ] , 4 ) ;
201201
202202 if ( ! absolute && value == 0 )
203203 continue ;
0 commit comments