libs/sensorml/src/lib/model/swe/SweBinaryEncoding.ts
Parameters of the binary encoding method
Properties |
Methods |
byteEncoding |
Type : SweByteEncoding
|
Decorators :
@DisplayName('Byte encoding')
|
Byte encoding method used to encode the binary data (raw or base 64) |
byteLength |
Type : number
|
Decorators :
@DisplayName('Byte length')
|
Total length in bytes of the binary stream (if known in advance) |
byteOrder |
Type : SweByteOrder
|
Decorators :
@DisplayName('Byte order')
|
Byte order convention used to encode this binary data (big endian = most significant byte first, MSB or little endian = least significant byte first, LSB) |
members |
Type : Array<SweBinaryBlock | SweBinaryComponent>
|
Default value : []
|
Decorators :
@DisplayName('Members')
|
extension |
Type : any[]
|
Decorators :
@DisplayName('Extension')
|
Inherited from
AbstractSWE
|
Defined in
AbstractSWE:12
|
Extension slot for future extensions to this standard. |
id |
Type : string
|
Decorators :
@DisplayName('Id')
|
Inherited from
AbstractSWE
|
Defined in
AbstractSWE:7
|
toString |
toString()
|
Returns :
string
|
toString |
toString()
|
Inherited from
SweEncoding
|
Defined in
SweEncoding:4
|
Returns :
string
|
toString |
toString()
|
Inherited from
AbstractSWE
|
Defined in
AbstractSWE:14
|
Returns :
string
|
import { SweBinaryComponent } from './SweBinaryComponent';
import { SweBinaryBlock } from './SweBinaryBlock';
import { SweByteOrder } from './SweByteOrder';
import { SweByteEncoding } from './SweByteEncoding';
import { SweEncoding } from './SweEncoding';
import { DisplayName } from '../../common/decorators/DisplayName';
/**
* Parameters of the binary encoding method
*/
export class SweBinaryEncoding extends SweEncoding {
@DisplayName('Members')
members: Array<SweBinaryBlock | SweBinaryComponent> = [];
/**
* Byte order convention used to encode this binary data (big endian = most
* significant byte first, MSB or little endian = least significant byte
* first, LSB)
*/
@DisplayName('Byte order')
byteOrder: SweByteOrder;
/**
* Byte encoding method used to encode the binary data (raw or base 64)
*/
@DisplayName('Byte encoding')
byteEncoding: SweByteEncoding;
/**
* Total length in bytes of the binary stream (if known in advance)
*/
@DisplayName('Byte length')
byteLength: number;
toString() {
return 'SWE binary encoding';
}
}