Ejemplo n.º 1
0
        private static void WriteBackPosition(Stream stream, AssParseInfo pi, long start, long end)
        {
            var pos = stream.Position;

            stream.Position = pi.posIndex;
            stream.Write(start);
            stream.Write(end);
            stream.Position = pos;
        }
Ejemplo n.º 2
0
        private static AssParseInfo WriteHeader(Stream stream, AssHeader header)
        {
            stream.Write(header.fileName);
            var pi = new AssParseInfo
            {
                fileName = header.fileName,
                posIndex = stream.Position,
            };

            stream.Write(0L);
            stream.Write(0L);
            return(pi);
        }