MCPcopy
hub / github.com/tensorflow/tfjs / length

Method length

tfjs-data/src/util/ring_buffer.ts:75–81  ·  view source on GitHub ↗

* Returns the current number of items in the buffer.

()

Source from the content-addressed store, hash-verified

73 * Returns the current number of items in the buffer.
74 */
75 length(): number {
76 let length = this.end - this.begin;
77 if (length < 0) {
78 length = this.doubledCapacity + length;
79 }
80 return length;
81 }
82
83 /**
84 * Reports whether the buffer is full.

Callers 6

isFullMethod · 0.95
isEmptyMethod · 0.95
serialNextFunction · 0.80
chooseIndexMethod · 0.80
expandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected