Skip to content
This repository was archived by the owner on Feb 28, 2018. It is now read-only.
This repository was archived by the owner on Feb 28, 2018. It is now read-only.

User wants to have "sizeof" function #7

Open
@nidin

Description

@nidin

What?
User wants to have sizeof function to get storage size of a variable or type in bytes.

How?

let a = new Array<float32>(10);
console.log(sizeof a); //48 => 4 (sizeof float32) x 10 + 8 (array header, byte length + element size)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions