bytealg.IndexByteString

This commit is contained in:
xushiwei
2024-06-20 14:31:05 +08:00
parent f8b0a7105b
commit d4e7eb5888
3 changed files with 29 additions and 1 deletions

View File

@@ -966,6 +966,8 @@ func (b Builder) BuiltinCall(fn string, args ...Expr) (ret Expr) {
case "Slice": // unsafe.Slice
size := args[1].impl
return b.unsafeSlice(args[0], size, size)
case "StringData":
return b.StringData(args[0]) // TODO(xsw): check return type
case "SliceData":
return b.SliceData(args[0]) // TODO(xsw): check return type
}