@@ -218,35 +218,26 @@ type RawByteMemory(addr: nativeptr<byte>, length: int, hold: obj) =
218218[<Struct; NoEquality; NoComparison>]
219219type ReadOnlyByteMemory ( bytes : ByteMemory ) =
220220
221- member _.Item with [<MethodImpl ( MethodImplOptions.AggressiveInlining ) >] get i = bytes.[ i]
221+ member _.Item with get i = bytes.[ i]
222222
223- member _.Length with [<MethodImpl ( MethodImplOptions.AggressiveInlining ) >] get () = bytes.Length
223+ member _.Length with get () = bytes.Length
224224
225- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
226225 member _.ReadBytes ( pos , count ) = bytes.ReadBytes( pos, count)
227226
228- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
229227 member _.ReadInt32 pos = bytes.ReadInt32 pos
230228
231- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
232229 member _.ReadUInt16 pos = bytes.ReadUInt16 pos
233230
234- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
235231 member _.ReadUtf8String ( pos , count ) = bytes.ReadUtf8String( pos, count)
236232
237- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
238233 member _.Slice ( pos , count ) = bytes.Slice( pos, count) |> ReadOnlyByteMemory
239234
240- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
241235 member _.CopyTo stream = bytes.CopyTo stream
242236
243- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
244237 member _.Copy ( srcOffset , dest , destOffset , count ) = bytes.Copy( srcOffset, dest, destOffset, count)
245238
246- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
247239 member _.ToArray () = bytes.ToArray()
248240
249- [<MethodImpl( MethodImplOptions.AggressiveInlining) >]
250241 member _.AsStream () = bytes.AsReadOnlyStream()
251242
252243type ByteMemory with
0 commit comments