PickMemoryTypeSuffix() публичный статический Метод

public static PickMemoryTypeSuffix ( TypeReference type, bool isStore ) : string
type Mono.Cecil.TypeReference
isStore bool
Результат string
Пример #1
0
 public GetMemory(
     TypeReference type, bool isAligned,
     JSExpression addressInBytes
     ) : base(
         string.Format(
             "{0}.load{1}{2}",
             WasmUtil.PickTypeKeyword(type),
             WasmUtil.PickMemoryTypeSuffix(type, false),
             isAligned
             ? ""
             : "/1"
             ),
         addressInBytes
         )
 {
     Type      = type;
     IsAligned = isAligned;
 }
Пример #2
0
        public SetMemory(
            TypeReference type, bool isAligned,
            JSExpression addressInBytes, JSExpression value
            ) : base(
                string.Format(
                    "{0}.store{1}{2}",
                    WasmUtil.PickTypeKeyword(type),
                    WasmUtil.PickMemoryTypeSuffix(type, true),
                    isAligned
                    ? ""
                    : "/1"
                    ),
                addressInBytes, value
                )
        {
            Type      = type;
            IsAligned = isAligned;

            LineBreakInside = true;
            LineBreakAfter  = true;
        }