String: HexstringMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem