Package COM.INFORMATIMAGO.COMMON-LISP.CESARUM.FLOAT-BINIO

This package encodes and decodes arrays of float into arrays of
signed-byte 32 in order to do binary I/O.

BUGS: Handling of SHORT-FLOAT and LONG-FLOAT is not complete.


License:

    AGPL3

    Copyright Pascal J. Bourguignon 2003 - 2012

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.
    If not, see <http://www.gnu.org/licenses/>
(biofa-count biofa-array)
function
RETURN: The number of floats encoded into the biofa-array.
(biofa-decode biofa-array)
function
RETURN: AN ARRAY OF FLOAT (DEPENDING ON BIOFA-FLOAT-SIZE AND +FLOAT-TYPE+)
        CONTAINING THE SAME VALUE AS ENCODED INTO BIOFA-ARRAY.
(biofa-encode float-array)
function
RETURN:  An array of (SIGNED-BYTE 32) or of containing
         the data from FLOAT-ARRAY.
(biofa-ref biofa-array index)
function
RETURN: The float at INDEX.
(biofa-setref biofa-array index fvalue)
function
POST:  (= (biofa-ref biofa-array index) fvalue)