The actual flattening is deferred until the bytes are truly needed, like during a regex match or a native API call. It's a nice example of structural sharing and lazy evaluation working quietly in the ...