diff options
author | Eric Wong <e@80x24.org> | 2015-01-20 01:33:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-01-20 02:08:44 +0000 |
commit | 65bb4baf0e479ff7cfbf0a8422824834c9f06ab1 (patch) | |
tree | 9a0bc4866c5d9e3ad5a896ddb814542dd29f902d /lib/dtas/buffer | |
parent | 51e6240767b394e255d05a0f712a1da853485e82 (diff) | |
download | dtas-65bb4baf0e479ff7cfbf0a8422824834c9f06ab1.tar.gz |
Hopefully this makes the code less daunting to newcomers
Diffstat (limited to 'lib/dtas/buffer')
-rw-r--r-- | lib/dtas/buffer/read_write.rb | 2 | ||||
-rw-r--r-- | lib/dtas/buffer/splice.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/dtas/buffer/read_write.rb b/lib/dtas/buffer/read_write.rb index 56eb8a1..a27b823 100644 --- a/lib/dtas/buffer/read_write.rb +++ b/lib/dtas/buffer/read_write.rb @@ -4,6 +4,8 @@ require 'io/nonblock' require_relative '../../dtas' require_relative '../pipe' +# compatibility code for systems lacking "splice" support via the +# "io-splice" RubyGem. Used only by -player module DTAS::Buffer::ReadWrite # :nodoc: MAX_AT_ONCE = 512 # min PIPE_BUF value in POSIX attr_accessor :buffer_size diff --git a/lib/dtas/buffer/splice.rb b/lib/dtas/buffer/splice.rb index 3f2484b..c83b87b 100644 --- a/lib/dtas/buffer/splice.rb +++ b/lib/dtas/buffer/splice.rb @@ -5,6 +5,7 @@ require 'io/splice' require_relative '../../dtas' require_relative '../pipe' +# Used by -player on Linux systems with the "io-splice" RubyGem installed module DTAS::Buffer::Splice # :nodoc: MAX_AT_ONCE = 4096 # page size in Linux MAX_AT_ONCE_1 = 65536 |