Skip to content

Commit

Permalink
Added missed implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jul 4, 2024
1 parent 55b230d commit 4c6b789
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/DotNext.IO/IO/BlittableTransferObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ static BlittableTransferObject<T> IBinaryFormattable<BlittableTransferObject<T>>
source.CopyTo(destination);
return result;
}

/// <inheritdoc cref="IDataTransferObject.TryGetMemory"/>
bool IDataTransferObject.TryGetMemory(out ReadOnlyMemory<byte> memory)
{
memory = Memory;
return true;
}

/// <inheritdoc/>
protected override void Dispose(bool disposing)
Expand Down

0 comments on commit 4c6b789

Please sign in to comment.