extract buffer