Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open and export bit and byte frames. #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions leaf-frames.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ define inline method high-level-type (low-level-type == <unsigned-byte>)
end;


define abstract class <unsigned-integer-bit-frame> (<fixed-size-translated-leaf-frame>)
define open abstract class <unsigned-integer-bit-frame> (<fixed-size-translated-leaf-frame>)
end;

define macro n-bit-unsigned-integer-definer
Expand Down Expand Up @@ -285,11 +285,11 @@ define method \= (frame1 :: <fixed-size-byte-vector-frame>,
frame1.data = frame2.data
end method;

define abstract class <big-endian-unsigned-integer-byte-frame> (<fixed-size-translated-leaf-frame>)
define open abstract class <big-endian-unsigned-integer-byte-frame> (<fixed-size-translated-leaf-frame>)
//slot data :: <integer>, required-init-keyword: data:;
end;

define abstract class <little-endian-unsigned-integer-byte-frame> (<fixed-size-translated-leaf-frame>)
define open abstract class <little-endian-unsigned-integer-byte-frame> (<fixed-size-translated-leaf-frame>)
end;

define macro n-byte-unsigned-integer-definer
Expand Down
4 changes: 3 additions & 1 deletion library.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ define module binary-data

export byte-aligned, high-level-type;

export n-byte-vector-definer, n-bit-unsigned-integer-definer;
export n-bit-unsigned-integer-definer, <unsigned-integer-bit-frame>,
n-byte-vector-definer, <big-endian-unsigned-integer-byte-frame>,
<little-endian-unsigned-integer-byte-frame>;

export hexdump;

Expand Down