Skip to content

Commit 3ef1905

Browse files
authored
Remove AggressiveInlining attribute (#8136)
1 parent 69a2525 commit 3ef1905

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/absil/bytes.fs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,35 +218,26 @@ type RawByteMemory(addr: nativeptr<byte>, length: int, hold: obj) =
218218
[<Struct;NoEquality;NoComparison>]
219219
type 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

252243
type ByteMemory with

0 commit comments

Comments
 (0)