ByteView
..Root.ByteView
Constructs new ByteView
. ByteView
is a sequence container providing an interface for accessing bytes of variables.
Parameters: Int
, Double
, Boolean
or String
Return value: new ByteView
ByteView
type signatures:Object
, Container
, Iterable
, ByteView
NativeCallable
, Callable
, Class
import("memory");
import("algorithm");
auto a.=(ByteView("abcd"));
auto b.=(ByteView(1684234849));
log(a.==(b), "");
algorithm.forEach(a, {
log(args[0].get().toInt());
});
log("");
algorithm.forEach(b, {
log(args[0].get().toInt());
});
true
97
98
99
100
97
98
99
100