Skip to content

Instantly share code, notes, and snippets.

@igorgue
Created April 29, 2012 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorgue/2533874 to your computer and use it in GitHub Desktop.
Save igorgue/2533874 to your computer and use it in GitHub Desktop.
string at 523601
pre each_char, length is
post each_char, length is 0
post reading string pos is 523603
string objects len is 0
string at 523603
pre each_char, length is
post each_char, length is 12
post reading string pos is 523618
string objects len is 12
string at 523618
pre each_char, length is
post each_char, length is 29
post reading string pos is 523650
string objects len is 29
string at 523650
pre each_char, length is
post each_char, length is 4
post reading string pos is 523656
string objects len is 4
string at 523656
pre each_char, length is
post each_char, length is 86
post reading string pos is 523745
string objects len is 86
dict at 523746
string at 523747
pre each_char, length is
post each_char, length is 22
post reading string pos is 523772
string objects len is 22
string at 523772
pre each_char, length is
post each_char, length is 0
post reading string pos is 523774
string objects len is 0
string at 523774
pre each_char, length is
post each_char, length is 9
post reading string pos is 523785
string objects len is 9
string at 523785
pre each_char, length is
post each_char, length is 7
post reading string pos is 523794
string objects len is 7
string at 523794
pre each_char, length is
post each_char, length is 12
post reading string pos is 523809
string objects len is 12
string at 523809
pre each_char, length is
post each_char, length is 29
post reading string pos is 523841
string objects len is 29
string at 523841
pre each_char, length is
post each_char, length is 4
post reading string pos is 523847
string objects len is 4
string at 523847
pre each_char, length is
post each_char, length is 86
post reading string pos is 523936
string objects len is 86
string at 523936
pre each_char, length is
post each_char, length is 5
post reading string pos is 523943
string objects len is 5
string at 523943
pre each_char, length is
post each_char, length is 16455
post reading string pos is 540404
string objects len is 16455
fail
545789
D
RuntimeError: fuck
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:22:in `
decode'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:35:in `
block in parseDict'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:32:in `
each_char'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:32:in `
parseDict'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:8:in `d
ecode'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:64:in `
block in parseList'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:61:in `
each_char'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:61:in `
parseList'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:14:in `
decode'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:36:in `
block in parseDict'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:32:in `
each_char'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:32:in `
parseDict'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:8:in `d
ecode'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:36:in `
block in parseDict'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:32:in `
each_char'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:32:in `
parseDict'
from C:/Users/Kitsoran/Documents/projects/hivetorrent/bencode.rb:8:in `d
ecode'
from (irb):4
from C:/Ruby193/bin/irb:12:in `<main>'irb(main):005:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment