Easypt

ByteView

..Root.ByteView

Constructs new ByteView. ByteView is a sequence container providing an interface for accessing bytes of variables.

ByteView type signatures:

Object, Container, Iterable, ByteView

Child of:

Root

Signatures:

NativeCallable, Callable, Class

Members:

Example:

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());
});

Expected output:

true

97
98
99
100

97
98
99
100