add buffer and byte objects, making socket read and write faster

This commit is contained in:
2023-06-24 10:30:34 +01:00
parent f63229c6f8
commit 4ca158cc96
8 changed files with 354 additions and 50 deletions

View File

@@ -8,6 +8,10 @@ func AnyToArValid(arr any) any {
return ArString(arr)
case anymap:
return Map(arr)
case []byte:
return ArBuffer(arr)
case byte:
return ArByte(arr)
default:
return arr
}