Giter Club home page Giter Club logo

eyeglass's Introduction

eyeglass

Sample 'file format' specification and applications for understanding issues in digital preservation. The format stores the information required for an eyeglass prescription for a single patient.

Specification

Eyeglass Format Specification 1.0
---
Magic number    - 14 bytes  - String
Version         - 1 bytes   - Unsigned Char
Big-endian      - 1 byte    - Bool
Date/time       - 19 bytes  - String #YYYY-MM-DDTHH:MM:SS
Expansion room  - 88 bytes  - Undefined
Sphere          - 8 bytes   - R: Float   L: Float
Cylinder        - 8 bytes   - R: Float   L: Float
Axis            - 8 bytes   - R: Integer L: Integer
Prism           - 8 bytes   - R: Float   L: Float
Base            - 8 bytes   - R: Float   L: Float
Distance acuity - 8 bytes   - R: Float   L: Float
Near acuity     - 8 bytes   - R: Integer L: Integer
Purpose         - 140 bytes - String
Observation     - 255 bytes - String
Next checkup    - 4 bytes   - Float
End of file     - 4 bytes   - String

The ‘magic number’ identifying the file format will be as follows:

'\xBB\x0D\x0A\x65\x79\x65\x67\x6C\x61\x73\x73\x1A\x0A\xAB'

The ‘end of file’ sequence terminating the stream will be as follows:

'\xBB\x65\x6f\x66'

Further reading

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.