Module Constant.RawSource

Convert to from constants from raw bit patterns stored in strings and bytes. Data is copied and resized as appropriate.

Sourceval of_bytes : Core.Bytes.t -> width:int -> t

Convert from a byte buffer. The copied data is padded as required.

Sourceval of_string : Core.String.t -> width:int -> t

Convert from a string buffer. The copied data is padded as required.

Sourceval to_string : t -> Core.String.t

Convert to a string buffer. The output buffer length is rounded to a multiple of 8 bits .

Sourceval to_bytes : t -> Core.Bytes.t