Platforms to show: All Mac Windows Linux Cross-Platform

HexstringMBS(input as string, hexlen as Integer, linelen as Integer, linestart as string, lineend as string, spacer as string,filler as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 2.6 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a hexadecimal string.
Example
dim s as string
s=HexstringMBS("Hello World",2,10,"<",">"+endofline,"","0")

Fails if input="" or hexlen<1 or linelen<1 or on low memory conditions.
If filler is "", filler is set to "0".

Memory requirement is around 5 times the memory for input.
or exactly:
mem=20+linelen*hexlen*(1+len(filler))+2*((linelen*hexlen*len(filler)+len(lineend)+len(linestart))*(len(input)*2/hexlen))

All strings must be in the encoding you want to have.
Can raise OutOfMemoryException on low memory.

Some examples using this global method:

Blog Entries

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...