$91 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby18/share/ri/1.8/system/CSV/StreamBuf/

HOME
Current File : /opt/alt/ruby18/share/ri/1.8/system/CSV/StreamBuf//cdesc-StreamBuf.yaml
--- !ruby/object:RI::ClassDescription 
attributes: []

class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::P 
  body: Buffered stream.
- !ruby/struct:SM::Flow::P 
  body: EXAMPLE 1 -- an IO.
- !ruby/struct:SM::Flow::VERB 
  body: "  class MyBuf < StreamBuf\n    # Do initialize myself before a super class.  Super class might call my\n    # method 'read'. (Could be awful for C++ user. :-)\n    def initialize(s)\n      @s = s\n      super()\n    end\n\n    # define my own 'read' method.\n    # CAUTION: Returning nil means EnfOfStream.\n    def read(size)\n      @s.read(size)\n    end\n\n    # release buffers. in Ruby which has GC, you do not have to call this...\n    def terminate\n      @s = nil\n      super()\n    end\n  end\n\n  buf = MyBuf.new(STDIN)\n  my_str = ''\n  p buf[0, 0]               # => '' (null string)\n  p buf[0]                  # => 97 (char code of 'a')\n  p buf[0, 1]               # => 'a'\n  my_str = buf[0, 5]\n  p my_str                  # => 'abcde' (5 chars)\n  p buf[0, 6]               # => "abcde\\n" (6 chars)\n  p buf[0, 7]               # => "abcde\\n" (6 chars)\n  p buf.drop(3)             # => 3 (dropped chars)\n  p buf.get(0, 2)           # => 'de' (2 chars)\n  p buf.is_eos?             # => false (is not EOS here)\n  p buf.drop(5)             # => 3 (dropped chars)\n  p buf.is_eos?             # => true (is EOS here)\n  p buf[0]                  # => nil (is EOS here)\n"
- !ruby/struct:SM::Flow::P 
  body: EXAMPLE 2 -- String.
- !ruby/struct:SM::Flow::VERB 
  body: "  This is a conceptual example.  No pros with this.\n\n  class StrBuf < StreamBuf\n    def initialize(s)\n      @str = s\n      @idx = 0\n      super()\n    end\n\n    def read(size)\n      str = @str[@idx, size]\n      @idx += str.size\n      str\n    end\n  end\n"
constants: 
- !ruby/object:RI::Constant 
  comment: 
  name: BufSize
  value: 1024 * 8
full_name: CSV::StreamBuf
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: "[]"
- !ruby/object:RI::MethodSummary 
  name: add_buf
- !ruby/object:RI::MethodSummary 
  name: buf_size
- !ruby/object:RI::MethodSummary 
  name: drop
- !ruby/object:RI::MethodSummary 
  name: get
- !ruby/object:RI::MethodSummary 
  name: idx_is_eos?
- !ruby/object:RI::MethodSummary 
  name: is_eos?
- !ruby/object:RI::MethodSummary 
  name: read
- !ruby/object:RI::MethodSummary 
  name: rel_buf
- !ruby/object:RI::MethodSummary 
  name: terminate
name: StreamBuf
superclass: Object


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / linksafe
0755
%5b%5d-i.yaml
0.579 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
add_buf-i.yaml
0.173 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
buf_size-i.yaml
0.178 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cdesc-StreamBuf.yaml
2.511 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
drop-i.yaml
0.391 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
get-i.yaml
0.227 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
idx_is_eos%3f-i.yaml
0.184 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
is_eos%3f-i.yaml
0.172 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
new-c.yaml
0.326 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
read-i.yaml
0.437 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rel_buf-i.yaml
0.173 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
terminate-i.yaml
0.179 KB
26 Jul 2023 1.47 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF