implementation of inline functions

implementation of inline functions called along the data transfer
process, decreasing the number of thread context switches, and
increasing the speed/consumption performances.