Skip to content

Commit e03847a

Browse files
committed
Comments.
1 parent 252c6c8 commit e03847a

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/IKVM.ByteCode/AccessFlag.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
namespace IKVM.ByteCode
44
{
55

6+
/// <summary>
7+
/// Models the access flags for a class, method, or field. The access flags appears exactly once in each class, method, or field.
8+
/// </summary>
69
[Flags]
710
public enum AccessFlag : ushort
811
{

src/IKVM.ByteCode/Buffers/ReadOnlyByteMemoryEqualityComparer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ namespace IKVM.ByteCode.Buffers
1010
public readonly struct ReadOnlyByteMemoryEqualityComparer : IEqualityComparer<ReadOnlyMemory<byte>>
1111
{
1212

13+
/// <inheritdoc />
1314
public bool Equals(ReadOnlyMemory<byte> x, ReadOnlyMemory<byte> y)
1415
{
1516
return x.Equals(y) || x.Span.SequenceEqual(y.Span);
1617
}
1718

19+
/// <inheritdoc />
1820
public int GetHashCode(ReadOnlyMemory<byte> obj)
1921
{
2022
return BlobHash.GetFNVHashCode(obj.Span);

src/IKVM.ByteCode/Buffers/SequenceReader.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
namespace IKVM.ByteCode.Buffers
1212
{
1313

14+
/// <summary>
15+
/// Provides methods for reading binary and text data out of a <see cref="ReadOnlySequence{T}"/> with a focus on performance and minimal or zero heap allocations.
16+
/// </summary>
17+
/// <typeparam name="T"></typeparam>
1418
ref partial struct SequenceReader<T> where T : unmanaged, IEquatable<T>
1519
{
1620

0 commit comments

Comments
 (0)