Base code for data units to init with buffer or blob