[PATCH 1/8] Add utilities for encoding BTLVs and CTLVs.