Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/awayjs/core
/ ensureWriteableSpace
Method
ensureWriteableSpace
lib/utils/ByteArray.ts:16–18 ·
view source on GitHub ↗
(n: number)
Source
from the content-addressed store, hash-verified
14
}
15
16
public ensureWriteableSpace(n: number): void {
17
this.ensureSpace(n + this.position);
18
}
19
20
public setArrayBuffer(aBuffer: ArrayBuffer): void {
21
this.ensureSpace(aBuffer.byteLength);
Callers
10
writeArrayBuffer
Method · 0.95
writeByteArray
Method · 0.95
writeByte
Method · 0.95
writeUnsignedByte
Method · 0.95
writeUnsignedShort
Method · 0.95
writeUTFBytes
Method · 0.95
writeUnsignedInt
Method · 0.95
writeInt
Method · 0.95
writeFloat
Method · 0.95
readBytes
Method · 0.80
Calls
1
ensureSpace
Method · 0.95
Tested by
no test coverage detected