9 references to SizeInBytes
Microsoft.CodeAnalysis (1)
ConstantValue.cs (1)
364
int size = st.
SizeInBytes
();
Microsoft.CodeAnalysis.CSharp (8)
CodeGen\EmitArrayInitializer.cs (3)
544
if (specialElementType.
SizeInBytes
() == 1)
584
Debug.Assert(specialElementType.
SizeInBytes
() is 2 or 4 or 8, "Supported primitives are expected to be 2, 4, or 8 bytes");
616
var field = _builder.module.GetFieldForData(data, alignment: (ushort)specialElementType.
SizeInBytes
(), wrappedExpression.Syntax, _diagnostics.DiagnosticBag);
CodeGen\EmitStackAllocInitializer.cs (2)
45
var sizeInBytes = elementType.EnumUnderlyingTypeOrSelf().SpecialType.
SizeInBytes
();
184
int elementTypeSizeInBytes = elementType.EnumUnderlyingTypeOrSelf().SpecialType.
SizeInBytes
();
Lowering\DiagnosticsPass_Warnings.cs (2)
638
int fromSize = fromSpecialType.
SizeInBytes
();
639
int toSize = toSpecialType.
SizeInBytes
();
Symbols\SpecialTypeExtensions.cs (1)
60
return specialType == SpecialType.System_Decimal ? 0 : specialType.
SizeInBytes
();