Show / Hide Table of Contents

Delegate FileLengthProcedure

User file stream Length callback function (to be used with FileProcedures).

Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.dll
Syntax
public delegate long FileLengthProcedure(IntPtr User);
Parameters
IntPtr User

The User instance data given when CreateStream(StreamSystem, BassFlags, FileProcedures, IntPtr) was called.

Returns
Int64

The Length of the file in bytes. Returning 0 for a buffered file stream, makes BASS stream the file in blocks, and is equivalent to using the StreamDownloadBlocks flag in the CreateStream(StreamSystem, BassFlags, FileProcedures, IntPtr) call.

Remarks

This function is called first thing, and is only used the once with buffered streams. With unbuffered streams, it may be used again when testing for EOF (end of file), allowing the file to grow in size.

Back to top Copyright © 2017 Mathew Sachin
Generated by DocFx