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

User wants to have "sizeof" function #7

Open
nidin opened this issue Mar 16, 2017 · 0 comments
Open

User wants to have "sizeof" function #7

nidin opened this issue Mar 16, 2017 · 0 comments

Comments

@nidin
Copy link
Contributor

nidin commented Mar 16, 2017

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)
@nidin nidin changed the title User wants to have "sizeof" functions User wants to have "sizeof" function Mar 16, 2017
@nidin nidin added this to the v1.0.0 milestone Mar 28, 2017
@nidin nidin added the ready label Apr 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant