-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
ILAssembler/src/ILAssembler/CilAssembler.cs
Lines 244 to 254 in ccdac27
byte* rawSignature = stackalloc byte[encoder.Builder.Count]; | |
byte* c = rawSignature; | |
foreach (Blob blob in blobEncoder.Builder.GetBlobs()) | |
{ | |
foreach (byte b in blob.GetBytes()) | |
{ | |
*c++ = b; | |
} | |
} | |
_context.ILInfo.SetLocalSignature(rawSignature, blobEncoder.Builder.Count); |
Saves one minor heap allocation every assemble, but not really worth the readability loss and the stackalloc
doesn't guard against stack overflow.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request