Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XFILE::IFile::ReadLineResult Struct Reference

#include <IFile.h>

Public Types

enum class  ResultCode { FAILURE , TRUNCATED , OK }
 

Public Attributes

ResultCode code
 The result of the read operation.
 
std::size_t length
 length of the read string without null terminator
 

Member Enumeration Documentation

◆ ResultCode

Enumerator
FAILURE 

Recondition violated, e.g. buffer is nullptr, file not open, EOF already reached, ...

TRUNCATED 

The line is longer than the supplied buffer. The next read continues reading of the line.

OK 

Read a line.

Member Data Documentation

◆ code

ResultCode XFILE::IFile::ReadLineResult::code

The result of the read operation.

◆ length

std::size_t XFILE::IFile::ReadLineResult::length

length of the read string without null terminator


The documentation for this struct was generated from the following file: