mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 21:23:54 +01:00
29 lines
687 B
Markdown
29 lines
687 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getFunctionRamCost](./bitburner.ns.getfunctionramcost.md)
|
|
|
|
## NS.getFunctionRamCost() method
|
|
|
|
Get the ram cost of a netscript function.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getFunctionRamCost(name: string): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| name | string | The fully-qualified function name, without the leading <code>ns</code>. Example inputs: <code>hack</code>, <code>tprint</code>, <code>stock.getPosition</code>. |
|
|
|
|
**Returns:**
|
|
|
|
number
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0 GB
|
|
|