Re: Bit functions

Hi Joel,

Maybe the Binary Module can help you with that [1]? It provides
numerous other operations for handling bits and byte streams.



On Tue, Dec 1, 2020 at 4:14 PM Joel Kalvesmaki <> wrote:
> This is the third and probably most hairbrained suggestion I'll post today. Apologies in advance for idiocy.
> In writing XSLT functions to create hash values and to parse binary input, I have needed to write bit-type functions, e.g., bit:rotate(). I have done so on the basis of parameters tied to xs:boolean(). This feels to me like a hack, and I feel like I should be using a simpler data type with a smaller footprint.
> Datatypes aside, would there be an advantage in introducing in XPath 4.0 a set of standard, common bit-type functions? (Understanding, of course, that there would need to be variations that treat variations in big- and little-endianness.)
> Best wishes,
> jk
> --
> Joel Kalvesmaki

Received on Tuesday, 1 December 2020 15:20:00 UTC