public static class TdApi.ReadFilePart extends TdApi.Function<TdApi.FilePart>
Returns FilePart
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
count
Number of bytes to read.
|
int |
fileId
Identifier of the file.
|
long |
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,
long offset,
long 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()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int fileId
public long offset
public long count
public static final int CONSTRUCTOR
public ReadFilePart()
Returns FilePart
public ReadFilePart(int fileId,
long offset,
long 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()
TdApi.ObjectgetConstructor in class TdApi.Object