FileBase

Description

abstract class Tinman.Core.IO.Files.FileBase

Derived from

Disposable abstract
IFile

Extended by

DatasetFile sealed
HttpFile sealed
VirtualFile sealed

Abstract base class for IFile implementations.

Protected / Methods

ResolveBufferOffset


protected static method ResolveBufferOffset → (2)

buffer in : ByteBuffer

The buffer.

offset in : int32

The byte offset or -1 for none.

returns → int32

ByteBuffer.Position if offset in is -1, the value of offset in otherwise.

Resolves the given optional byte offset.

ResolveCount


protected static method ResolveCount → (2)

buffer in : ByteBuffer

The buffer.

count in : int32

The byte count or -1 for none.

returns → int32

ByteBuffer.Remaining if count in is -1, the value of count in otherwise.

Resolves the given optional byte count.