Constructor
new Balance(acct)
Create a balance.
Parameters:
Name | Type | Description |
---|---|---|
acct |
Number |
- Source:
Methods
applyTo(balance)
Apply delta.
Parameters:
Name | Type | Description |
---|---|---|
balance |
Balance |
- Source:
format() → {String}
Inspect balance.
- Source:
Returns:
- Type
- String
getJSON(minimalopt) → {Object}
Convert balance to a more json-friendly object.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
minimal |
Boolean |
<optional> |
false |
- Source:
Returns:
- Type
- Object
getSize() → {Number}
Calculate size.
- Source:
Returns:
- Type
- Number
read(br) → {this}
Inject properties from serialized data.
Parameters:
Name | Type | Description |
---|---|---|
br |
bio.BufferReader |
- Source:
Returns:
- Type
- this
write(bw) → {BufioWriter}
Serialize balance.
Parameters:
Name | Type | Description |
---|---|---|
bw |
BufioWriter |
- Source:
Returns:
- Type
- BufioWriter