Returns the number of bytes in Tcl's buffers for the channel channelId in the direction specified by mode (which must be input or output).
This subcommand was introduced by TIP#287[L1 ].