public GetMemory( TypeReference type, bool isAligned, JSExpression addressInBytes ) : base( string.Format( "load{0}{1}.{2}", TypeUtil.IsSigned(type).GetValueOrDefault() ? "s" : "u", isAligned ? "" // WTF??? : ".1", WasmUtil.PickMemoryTypeKeyword(type) ), addressInBytes ) { Type = type; IsAligned = isAligned; }
public SetMemory( TypeReference type, bool isAligned, JSExpression addressInBytes, JSExpression value ) : base( string.Format( "store{0}{1}.{2}", TypeUtil.IsSigned(type).GetValueOrDefault() ? "s" : "u", isAligned ? "" // WTF??? : ".1", WasmUtil.PickMemoryTypeKeyword(type) ), addressInBytes, value ) { Type = type; IsAligned = isAligned; LineBreakInside = true; LineBreakAfter = true; }