abi.Name; runtime: MakeAnyInt => MakeAnyIntptr; llgo/ssa: AllocU; builtin unsafe.String; MakeInterface; prog.PointerSize
This commit is contained in:
@@ -40,6 +40,7 @@ func EmptyString() String {
|
||||
return String{nil, 0}
|
||||
}
|
||||
|
||||
// TODO(xsw): unsafe.String
|
||||
// NewString creates a new string.
|
||||
func NewString(data unsafe.Pointer, len int) String {
|
||||
return String{data, len}
|
||||
|
||||
Reference in New Issue
Block a user