Namespace: bluefile

bluefile

Bluefiles are a binary format directly supported by SigPlot. A Bluefile consists of a 512-byte header followed by binary data. For more information on BLUEFILES, please visit http://nextmidas.techma.com/nm/htdocs/usersguide/BlueFiles.html

Offset Name Size Type Description

0 version 4 char[4] Header version 4 head_rep 4 char[4] Header representation 8 data_rep 4 char[4] Data representation 12 detached 4 int_4 Detached header 16 protected 4 int_4 Protected from overwrite 20 pipe 4 int_4 Pipe mode (N/A) 24 ext_start 4 int_4 Extended header start, in 512-byte blocks 28 ext_size 4 int_4 Extended header size in bytes 32 data_start 8 real_8 Data start in bytes 40 data_size 8 real_8 Data size in bytes 48 type 4 int_4 File type code 52 format 2 char[2] Data format code 54 flagmask 2 int_2 16-bit flagmask (1=flagbit) 56 timecode 8 real_8 Time code field 64 inlet 2 int_2 Inlet owner 66 outlets 2 int_2 Number of outlets 68 outmask 4 int_4 Outlet async mask 72 pipeloc 4 int_4 Pipe location 76 pipesize 4 int_4 Pipe size in bytes 80 in_byte 8 real_8 Next input byte 88 out_byte 8 real_8 Next out byte (cumulative) 96 outbytes 64 real_8[8] Next out byte (each outlet) 160 keylength 4 int_4 Length of keyword string 164 keywords 92 char[92] User defined keyword string 256 Adjunct 256 char[256] Type-specific adjunct union (See below for 1000 and 2000 type bluefiles)

Type-1000 Adjunct 0 xstart 8 real_8 Abscissa value for first sample 8 xdelta 8 real_8 Abscissa interval between samples 16 xunits 4 int_4 Units for abscissa values

Type-2000 Adjunct 0 xstart 8 real_8 Frame (column) starting value 8 xdelta 8 real_8 Increment between samples in frame 16 xunits 4 int_4 Frame (column) units 20 subsize 4 int_4 Number of data points per frame (row) 24 ystart 8 real_8 Abscissa (row) start 32 ydelta 8 real_8 Increment between frames 36 yunits 4 int_4 Abscissa (row) unit code

Members

<private, static> _applySupportsTypedArray

<private, static> _BPS

<private, static> _SPA

<private, static> _XM_TO_TYPEDARRAY

<private, static> ARRAY_BUFFER_ENDIANNESS

<private, static> iOS

Methods

<private, static> ab2str(buf)

Parameters:
Name Type Description
buf array

Data bffer

<static> BlueFileReader(options)

Bluefile Reader

Parameters:
Name Type Description
options

<static> BlueHeader(buf)

Create bluefile header and attach data buffer

Parameters:
Name Type Description
buf array

Data bffer

<static> createArray(buf, offset, length)

Create typed array

Parameters:
Name Type Description
buf
offset
length
Returns:

-

<private, static> endianness()

<private, static> parseURL(url)

This function creates a new anchor element and uses location properties (inherent) to get the desired URL data. Some String operations are used (to normalize results across browsers).

Parameters:
Name Type Description
url
Returns:

-

<static> read(theFile, onload)

Parameters:
Name Type Description
theFile
onload

<static> read_http(href, onload)

Parameters:
Name Type Description
href
onload

<static> readheader(theFile, onload)

Parameters:
Name Type Description
theFile
onload

<static> setData(buf, offset, data_end, littleEndian)

Parameters:
Name Type Description
buf
offset
data_end
littleEndian

<private, static> text2buffer(text, oncomplete, blocksize)

Parameters:
Name Type Description
text
oncomplete
blocksize
DocStrap Copyright © 2012-2013 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.2.2 on 2016-01-13T22:21:46+00:00 using the DocStrap template.