der: support indefinite length
der: encoder