2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
12 #include "filesystem/UDFBlockInput.h"
17 typedef struct udfread_file UDFFILE
;
22 class CUDFFile
: public IFile
26 ~CUDFFile() override
= default;
28 bool Open(const CURL
& url
) override
;
29 void Close() override
;
31 int Stat(const CURL
& url
, struct __stat64
* buffer
) override
;
33 ssize_t
Read(void* buffer
, size_t size
) override
;
34 int64_t Seek(int64_t filePosition
, int whence
) override
;
36 int64_t GetLength() override
;
37 int64_t GetPosition() override
;
39 bool Exists(const CURL
& url
) override
;
42 std::unique_ptr
<CUDFBlockInput
> m_bi
{nullptr};
44 udfread
* m_udf
{nullptr};
45 UDFFILE
* m_file
{nullptr};