boxStatsShow method
:box:statistics: in glb
Implementation
void boxStatsShow(String caller) {
// target is: Map<String, StringBuffer>
List<String> _lL = [];
print('> > > :box:statistics: :glb:boxServe:buf: length and names > >');
int bLength = glb.boxServeBuffers.length;
String _bLS = bLength.toString();
print('caller: $caller :box:count: $_bLS ');
print(glb.boxServeBuffers.length);
for (var _zStr in glb.boxServeBuffers.keys) {
//
String _orderNS = '';
String _lengthS = '';
print(glb.boxServeBuffers[_zStr]?.length);
int i = 0;
i = glb.boxServeBuffers[_zStr]!.length;
_lengthS = i.toString();
// :BUG: howTo i = glb.boxServeBuffers[_zStr]?.length;
_orderNS = _zStr.toString();
// :BUG: howTo _lengthS = glb.boxServeBuffers[_zStr]?.length.toString();
print(_zStr);
_lL.add(':buf:N: $_orderNS Length: $_lengthS ');
} // for
_lL.forEach(print);
tl.listShowNeat(_lL, ':box:tatistics:', ':glb:box:stats:Show:');
/* Output like:
:buf:No: :glb:box: C: :d:ex:1 Lnegth: 2171
:buf:No: :con:box: :R:.do:2 Lnegth: 8414
:buf:No: :da:box:3 Lnegth: 7419
:buf:No: :da:box:4 Lnegth: 7419
:buf:No: :chr:box:5 Lnegth: 8525
:buf:No: :con:box: :d:ex:6 Lnegth: 8414
:buf:No: :dHst:7 Lnegth: 8699
:buf:No: :chr:box:8 Lnegth: 8525
:buf:No: :da:box:9 Lnegth: 7419
< < < :box:statistics: :glb:boxServe:buf: length and names < <
*/
print('< < < :box:statistics: :glb:boxServe:buf: length and names < <');
// glb.boxServeBuffers.keys.forEach(print);
}