Platforms to show: All Mac Windows Linux Cross-Platform
EdsStreamMBS class
Super class: EdsBaseMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Canon EOS Digital | MBS Cameras Plugin | 12.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Use it to specify a destination for downloading image data or as source for reading data.
Subclass of the EdsBaseMBS class.
- 14 methods
- method Constructor(data as string)
- method Constructor(Memory as Memoryblock, size as Int64 = -1, offset as Integer = 0)
- method Constructor(path as folderitem, CreateDisposition as Integer, DesiredAccess as Integer)
- method Constructor(path as string, CreateDisposition as Integer, DesiredAccess as Integer)
- method Constructor(size as UInt64)
- method CopyData(WriteSize as UInt64, outStream as EdsStreamMBS)
- method CreateEvfImageRef as EdsEvfImageMBS
- method CreateImage as EdsImageMBS
- method Length as UInt64
- method Pointer as Ptr
- method Position as UInt64
- method Read(size as UInt64) as string
- method Seek(Offset as Int64, origin as Integer)
- method Write(Data as string) as UInt64
- 5 shared methods
- shared method CreateFileStream(path as folderitem, CreateDisposition as Integer, DesiredAccess as Integer) as EdsStreamMBS
- shared method CreateFileStream(path as string, CreateDisposition as Integer, DesiredAccess as Integer) as EdsStreamMBS
- shared method CreateMemoryStream(size as UInt32) as EdsStreamMBS
- shared method CreateMemoryStreamFromMemoryblock(Memory as Memoryblock, size as Integer = -1, offset as Integer = 0) as EdsStreamMBS
- shared method CreateMemoryStreamFromstring(data as string) as EdsStreamMBS
- 12 constants
File Access Constants
Constant | Value | Description |
---|---|---|
kEdsAccess_Error | -1 |
Error |
kEdsAccess_Read | 0 |
Open a read-only stream. |
kEdsAccess_ReadWrite | 2 |
Allow reading and writing. |
kEdsAccess_Write | 1 |
Open a write-only stream. |
File Create Disposition Constants
Constant | Value | Description |
---|---|---|
kEdsFileCreateDisposition_CreateAlways | 1 |
Creates a new file. If the designated file already exists, that file is overwritten and existing attributes is erased. |
kEdsFileCreateDisposition_CreateNew | 0 |
Creates a new file. An error occurs if the designated file already exists. |
kEdsFileCreateDisposition_OpenAlways | 3 |
If the file exists, it is opened. If the designated file does not exist, a new file is created. |
kEdsFileCreateDisposition_OpenExisting | 2 |
Opens a file. An error occurs if the designated file does not exist. |
kEdsFileCreateDisposition_TruncateExsisting | 4 |
Opens a file and sets the file size to 0 bytes. |
Seek Origin Constants
Constant | Value | Description |
---|---|---|
kEdsSeek_Begin | 1 |
Moves the file position indicator from the beginning of the stream forward by inOffset bytes. |
kEdsSeek_Cur | 0 |
Moves the file position indicator from the current position in the stream forward by inOffset bytes. |
kEdsSeek_End | 2 | Moves the file position indicator from the end of the stream by offset bytes. more |
Super class EdsBaseMBS
- 5 properties
- 32 methods
- method ChildCount as UInt32
- method GetPropertyData(PropertyID as UInt32, Param as Int32 = 0) as Memoryblock
- method GetPropertyDataBool(PropertyID as UInt32, Param as Int32 = 0) as Boolean
- method GetPropertyDataInt32(PropertyID as UInt32, Param as Int32 = 0) as Int32
- method GetPropertyDataInt32Array(PropertyID as UInt32, Param as Int32 = 0) as Integer()
- method GetPropertyDataPoint(PropertyID as UInt32, Param as Int32 = 0) as EdsPointMBS
- method GetPropertyDataRational(PropertyID as UInt32, Param as Int32 = 0) as EdsRationalMBS
- method GetPropertyDataRationalArray(PropertyID as UInt32, Param as Int32 = 0) as EdsRationalMBS()
- method GetPropertyDataRect(PropertyID as UInt32, Param as Int32 = 0) as EdsRectMBS
- method GetPropertyDataSize(PropertyID as UInt32, Param as Int32 = 0) as EdsSizeMBS
- method GetPropertyDataString(PropertyID as UInt32, Param as Int32 = 0) as String
- method GetPropertyDataType(PropertyID as UInt32, Param as Int32 = 0) as UInt32
- method GetPropertyDataUInt32(PropertyID as UInt32, Param as Int32 = 0) as UInt32
- method GetPropertyDataUInt32Array(PropertyID as UInt32, Param as Int32 = 0) as UInt32()
- method GetPropertyDataUInt8(PropertyID as UInt32, Param as Int32 = 0) as UInt8
- method GetPropertyDesc(PropertyID as UInt32) as Memoryblock
- method GetPropertyElementCount(PropertyID as UInt32) as UInt32
- method GetPropertySize(PropertyID as UInt32, Param as Int32 = 0) as UInt32
- method SetProgress(progress as EdsProgressMBS, options as Integer)
- method SetPropertyData(PropertyID as UInt32, Param as Int32, data as Memoryblock)
- method SetPropertyDataBool(PropertyID as UInt32, Param as Int32, data as Boolean)
- method SetPropertyDataInt32(PropertyID as UInt32, Param as Int32, data as Int32)
- method SetPropertyDataInt32Array(PropertyID as UInt32, Param as Int32, data() as Integer)
- method SetPropertyDataPoint(PropertyID as UInt32, Param as Int32, data as EdsPointMBS)
- method SetPropertyDataRational(PropertyID as UInt32, Param as Int32, data as EdsRationalMBS)
- method SetPropertyDataRationalArray(PropertyID as UInt32, Param as Int32, data() as EdsRationalMBS)
- method SetPropertyDataRect(PropertyID as UInt32, Param as Int32, data as EdsRectMBS)
- method SetPropertyDataSize(PropertyID as UInt32, Param as Int32, data as EdsSizeMBS)
- method SetPropertyDataString(PropertyID as UInt32, Param as Int32, data as String)
- method SetPropertyDataUInt32(PropertyID as UInt32, Param as Int32, data as UInt32)
- method SetPropertyDataUInt32Array(PropertyID as UInt32, Param as Int32, data() as UInt32)
- method SetPropertyDataUInt8(PropertyID as UInt32, Param as Int32, data as UInt8)
- 132 constants
This class has no sub classes.
Some methods using this class:
- EdsDirectoryItemMBS.Download(ReadSize as UInt64, stream as EdsStreamMBS)
- EdsDirectoryItemMBS.DownloadThumbnail(stream as EdsStreamMBS)
- EdsEvfImageMBS.Constructor(stream as EdsStreamMBS, OldSDK as boolean = false)
- EdsImageMBS.Image(ImageSource as Integer, TargetImageType as Integer, Source as EdsRectMBS, Dest as EdsSizeMBS, DestStream as EdsStreamMBS)
- EdsImageMBS.SaveImage(TargetImageType as Integer, DestStream as EdsStreamMBS, JPEGQuality as Integer = 0, iccProfileStream as EdsStreamMBS)
Some examples using this class:
The items on this page are in the following plugins: MBS Cameras Plugin.