If the EndBoundary property is greater than or equal to 0,
then the length will be calculated by subtracting the StartBoundary
from the EndBoundary. If the end of the stream is unbound, then the
StartBoundary will be subtracted from the length of the
BaseStream.