delphi - How do I make the compiler choose the BinaryWriter.Write overload I want? -
i using binary readers , writers read / write data file. example this:
mywriter.write(ord(tmyenum(2)));
i expect write down smallint read with
myreader.readsmallint
but in ide see writes down byte. how force writer write type want?
cast smallint
smallint(someenum)
Comments
Post a Comment