Decode should work with buffers