Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
SquirrelJME
Commits
d9bd4519
Commit
d9bd4519
authored
Mar 13, 2016
by
Stephanie Gawroriski
Browse files
Fixups.
parent
dea8b2da
Changes
2
Hide whitespace changes
Inline
Side-by-side
readme.mkd
View file @
d9bd4519
...
@@ -19,7 +19,7 @@ strange and many other devices. The source is written in pure Java.
...
@@ -19,7 +19,7 @@ strange and many other devices. The source is written in pure Java.
## Goals
## Goals
*
_To be self-hosting_ - it can build itself while running on itself, provided
*
_To be self-hosting_ - it can build itself while running on itself, provided
there is a filesystem.
there is a filesystem
and enough memory
.
*
_To be small_ - Smaller programs are easier to maintain and are usually
*
_To be small_ - Smaller programs are easier to maintain and are usually
simpler.
simpler.
*
_To be fast_ - With the potential of AOT/JIT, systems that do not normally
*
_To be fast_ - With the potential of AOT/JIT, systems that do not normally
...
...
src/extra-io/net/multiphasicapps/io/SlidingByteWindow.java
View file @
d9bd4519
...
@@ -13,6 +13,12 @@ package net.multiphasicapps.io;
...
@@ -13,6 +13,12 @@ package net.multiphasicapps.io;
/**
/**
* This represents a sliding byte window.
* This represents a sliding byte window.
*
*
* It is allocated in chunks of a given fragment size so that the entire window
* is not allocated in its entirety until it is actually used.
*
* In the future this class may support a kind of compression so that older
* bytes in the sliding window may be compacted when they are not used.
*
* @since 2016/03/10
* @since 2016/03/10
*/
*/
public
class
SlidingByteWindow
public
class
SlidingByteWindow
...
@@ -229,7 +235,8 @@ public class SlidingByteWindow
...
@@ -229,7 +235,8 @@ public class SlidingByteWindow
}
}
/**
/**
* This reads bytes
* This reads bytes from the sliding window at a given historical index
* and writes them to the input array.
*
*
* @param __ago How many bytes in the past to read.
* @param __ago How many bytes in the past to read.
* @param __b The output array of bytes to write.
* @param __b The output array of bytes to write.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment