def METHOD_NAME(self) -> None:
    x = b""
    xb = IOBuf(x)
    # pyre-fixme[6]: Expected `Union[bytearray, bytes, memoryview]` for 1st
    #  param but got `IOBuf`.
    self.assertEqual(memoryview(xb), x)
    self.assertEqual(bytes(xb), x)
    self.assertFalse(xb)
    self.assertEqual(len(xb), len(x))