Skip to main content

Mojo function

sizeof

sizeof[type: AnyType, target: target = _current_target()]() -> Int

Deprecated:

Use sys.size_of() instead.

Returns:

Int

sizeof[dtype: DType, target: target = _current_target()]() -> Int

Deprecated:

Use sys.size_of() instead.

Returns:

Int

Was this page helpful?