add SharedBuffer impl.