mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 08:51:34 +00:00
Add built-in valueof type
This commit is contained in:
@ -1068,7 +1068,7 @@ function FOREACH<TArray extends ArrayBufferView, T>(
|
||||
|
||||
// @ts-ignore: decorator
|
||||
@inline
|
||||
export function REVERSE<TArray extends ArrayBufferView, T>(array: TArray): TArray {
|
||||
function REVERSE<TArray extends ArrayBufferView, T>(array: TArray): TArray {
|
||||
var dataStart = array.dataStart;
|
||||
for (let front = 0, back = array.length - 1; front < back; ++front, --back) {
|
||||
let frontPtr = dataStart + (<usize>front << alignof<T>());
|
||||
|
Reference in New Issue
Block a user