php qol Sam asked for (#44)

Co-authored-by: Itamar Levy-Or <[email protected]>
This commit is contained in:
ilevyor
2021-08-06 14:01:30 -04:00
committed by GitHub
co-authored by Itamar Levy-Or
parent e5ffe9d63d
commit e4f5b52d6a
+3
View File
@@ -29,6 +29,9 @@ final class Encoding {
}
public static function encodeString($str) {
if (is_array($str)) {
$str = $str[0];
}
return pack("Na*", strlen($str), $str);
}
}