Due to practical limitations (stability, float length) direct encoding of data into textile patterns is rarely possible. Nevertheless the maximum float length can be limited by adding an odd parity bit both in weft and warp direction.
It is also possible to use several systems of weft or warp, only one of which is used for the actual code weaving.
The data encoded in a textile pattern can be extracted by means of fabric analysis. Of course the encoding used must be known to recover the original data. This can be used for textile steganography where secret information is hidden in textile structures.