+ size_t bufEnd, endSpace;
+ size_t tmpLen, tmpStart;
+
+ // Cache Start and Length because _Read can change these
+ SHORTLOCK( &Buffer->Lock );
+ tmpStart = Buffer->Start;
+ tmpLen = Buffer->Length;
+ SHORTREL( &Buffer->Lock );
+
+ bufEnd = (tmpStart + Buffer->Length) % Buffer->Space;
+ endSpace = Buffer->Space - bufEnd;