Accessors
allocatedLength
- get allocatedLength(): number
Returns number
length
- get length(): number
Returns number
- set length(value): void
Returns void
littleEndian
- get littleEndian(): boolean
Returns boolean
- set littleEndian(value): void
Returns void
pos
- get pos(): number
Returns number
Constructors
constructor
- new MemoryParser(obj): MemoryParser
- new MemoryParser(obj): MemoryParser
Methods
detach
- detach(): null | ArrayBuffer
Returns null | ArrayBuffer
傳回檔案的內容
getData
- getData(): ArrayBuffer
Returns ArrayBuffer
傳回複制的檔案資料
getDataRef
- getDataRef(): ArrayBuffer
Returns ArrayBuffer
傳回內部使用的記憶體
isEOF
- isEOF(): boolean
Returns boolean
回傳目前的指標是否位於最後面
readAsciiString
- readAsciiString(): string
Returns string
回傳讀取的值
readBinary
- readBinary(length): null | ArrayBuffer
Returns null | ArrayBuffer
回傳讀取的值
readByte
- readByte(): number
Returns number
回傳讀取的值
readChar
- readChar(): string
Returns string
回傳讀取的值
readChars
- readChars(n): string
Returns string
回傳讀取的值
readFloat32
- readFloat32(): number
Returns number
回傳讀取的值
readFloat64
- readFloat64(): number
Returns number
回傳讀取的值
readInt16
- readInt16(): number
Returns number
回傳讀取的值
readInt32
- readInt32(): number
Returns number
回傳讀取的值
readInt64
- readInt64(): number
Returns number
回傳讀取的值
readPolygon
- readPolygon(): GeoPolygon
回傳GeoPolygon
readUint16
- readUint16(): number
Returns number
回傳讀取的值
readUint32
- readUint32(): number
Returns number
回傳讀取的值
readUint64
- readUint64(): number
Returns number
回傳讀取的值
readUnicodeString
- readUnicodeString(): string
Returns string
回傳讀取的值
readUtf8String
- readUtf8String(): string
Returns string
回傳讀取的值
seek
- seek(pos, refPos): number
Parameters
pos: number
refPos: ENUM_FILE_SEEK
Returns number
回傳檔案目前的指標所在的位置
toBegin
- toBegin(): number
Returns number
回傳檔案目前的指標所在的位置
toEnd
- toEnd(): number
Returns number
回傳檔案目前的指標所在的位置
writeBinary
- writeBinary(binary, offset, length): number
Parameters
binary: ArrayBuffer
offset: number
length: number
Returns number
傳回寫入的byte數
writeByte
- writeByte(value): number
Returns number
傳回寫入的byte數
writeFloat32
- writeFloat32(value): number
Returns number
傳回寫入的byte數
writeFloat64
- writeFloat64(value): number
Returns number
傳回寫入的byte數
writeInt16
- writeInt16(value): number
Returns number
傳回寫入的byte數
writeInt32
- writeInt32(value): number
Returns number
傳回寫入的byte數
writeInt64
- writeInt64(value): number
Returns number
傳回寫入的byte數
writeUint16
- writeUint16(value): number
Returns number
傳回寫入的byte數
writeUint32
- writeUint32(value): number
Returns number
傳回寫入的byte數
writeUint64
- writeUint64(value): number
Returns number
傳回寫入的byte數
writeUnicodeString
- writeUnicodeString(value): number
Returns number
傳回寫入的byte數
記憶體讀寫器