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