def changeWordSize ( words, inSize, outSize ):
    """
    >>> list( changeWordSize( [255, 18], 8, 1 ) )
...

Python changeWordSize

by Leif Ryge, July 18, 2011 18:31, No refactoring, tagged with generator, generators, binary, bitwise, bitshift, ordinal, words

Generator which transforms ...

264124475f095b65634c53da3380b88d Talk
File.open( "binary.bin", "wb" ) do |io|
  obj = BinData::String.new(:initial_value => "Binary file start-point").write(io)      
  obj = BinData::Uint32be.new(:initial_value => 0).write(io)
...

Ruby Creating a binary file with...

by podcaster, March 01, 2010 12:14, 3 refactorings, tagged with ruby, io, binary, bindata

Hi, I'm currently using Bin...

13d7a3ab12ec57e0d372d7115362cb91 Talk