Add in_area function. (Amend)

This commit is contained in:
2022-11-06 14:20:28 +08:00
parent b4fa5849ae
commit f33560daba
2 changed files with 16 additions and 5 deletions

View File

@@ -20,6 +20,13 @@ namespace Cryville.Common.Pdt {
Length = len;
}
/// <summary>
/// Copies the memory in the span to another span.
/// </summary>
/// <param name="dest">The destination span.</param>
public void CopyTo(PdtVariableMemory dest) {
CopyTo(dest._ptr, 0, Length);
}
/// <summary>
/// Copies the memory in the span to a buffer.
/// </summary>
/// <param name="dest">The destination buffer.</param>