BinaryStream

From REALbasicWiki

Jump to: navigation, search
BinaryStream class
Available on Mac OS X Linux Windows
General
Superclass Object
Interfaces * Readable
Constants
  • Handle types
    • HandleTypeFileNumber = 3
    • HandleTypeFilePointer = 2
    • HandleTypeMacFileSpecPointer = 5
    • HandleTypeMacFileRefNum = 4
    • HandleTypeWin32Handle = 1
Methods
Properties
Events

none

NOTE: You can get descriptions of the items above from the REALbasic documentation.

A BinaryStream represents an open file (or block of memory) and provides random access to it.


Contents

[edit] Methods

[edit] Sub BinaryStream(handle as Integer, type as Integer)

This constructor allows you to create a BinaryStream object from a reference obtained from an external function. Not all types are supported on all platforms.

HandleTypeFileNumber specifies a file descriptor; this type does not appear to be supported in Mac OS X.


[edit] Function Handle(Type as Integer) as Integer

[edit] Notes

  • Length and Position were changed from Integer to UInt64 in REALbasic 2006r4.
Personal tools
related