public static class TdApi.ReadFilePart extends TdApi.Function
Returns FilePart
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
count
Number of bytes to read.
|
int |
fileId
Identifier of the file.
|
int |
offset
The offset from which to read the file.
|
Constructor and Description |
---|
ReadFilePart()
Default constructor for a function, which reads a part of a file from the TDLib file cache and returns read bytes.
|
ReadFilePart(int fileId,
int offset,
int count)
Creates a function, which reads a part of a file from the TDLib file cache and returns read bytes.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public int fileId
public int offset
public int count
public static final int CONSTRUCTOR
public ReadFilePart()
Returns FilePart
public ReadFilePart(int fileId, int offset, int count)
Returns FilePart
fileId
- Identifier of the file. The file must be located in the TDLib file cache.offset
- The offset from which to read the file.count
- Number of bytes to read. An error will be returned if there are not enough bytes available in the file from the specified position. Pass 0 to read all available data from the specified position.public int getConstructor()
getConstructor
in class TdApi.Function