While writing parser for ruby marshal format i notised one strange thing. At one point after a variable comes sequence “x04x08”. By documentation this is format version. But judging by common sense it should be only at start of file. Or in ruby i can write in file multiple streams and read them without problems. Or format obusficated and i have to skip all these sequences? Or something else?
Question probably dumb but i do not know ruby and do not want to know and nobody seems asked question about this.