public void Compile(Stream output) { try { ByteBufferIO.Write(output, buffer.Stream); } catch (IOException ex) { throw new IOException("TokenInfoBufferCompiler.Compile: " + ex.Message); } }
public void Compile(Stream output) { try { Array.Sort(surfaces, StringHelper.SortLexicographically); using (Builder builder = new Builder()) { builder.Build(surfaces, null); MemoryStream fst = new MemoryStream(builder.GetCompiler().GetBytes()); ByteBufferIO.Write(output, fst); } } catch (IOException ex) { throw new Exception("FSTCompiler.Compile: " + ex.Message); } }
public void Write(Stream output) { ByteBufferIO.Write(output, buffer.Stream); }
public void Compile() { ByteBufferIO.Write(Output, Buffer); }
public void Write(Stream output) { ByteBufferIO.Write(output, Buffer); }