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

Popular posts from this blog

My HTML document is not linking to my CSS stylesheet properly -

php array slice every 2th rule -

node.js - Sending sockets to client side, Error: Converting circular structure to JSON -