Unmarks all frames.
@return the number of unmarked frames
7192
protected int unmarkFrames() {
        final int res = this.frames.size();
        while (!this.frames.empty()) {
            final CLFrame f = this.control.get(this.frames.back());
            this.frames.pop();
            assert f.mark();
            f.setMark(false);
        }
        return res;
    }
983512
public void removeAll()
    {
        if (m_aCurrentRecord != null)
        {
            for (int index = m_iCurrentRecordStart; index < m_iCurrentRecordEnd; index++)
            {
                int iArrayIndex = this.bufferToArrayIndex(index);
                Object bookmark = m_aCurrentRecord[iArrayIndex];
                if ((bookmark != null) && (bookmark != gEmptyCell))
                    this.freeElement(bookmark);
                m_aCurrentRecord[iArrayIndex] = gEmptyCell;   // No record here
            }
        }
        m_iCurrentRecordStart = 0;      // The first
        m_iCurrentRecordEnd = 0;        // One after the last (Use array nomenclature)
    }
1124579
public synchronized int cleanUpObsoleteEntries() {
        countPutCountSinceEviction = 0;
        nextCleanUpTimestamp = 0;

        int countCleaned = 0;
        long timeLimit = isExpiring ? System.currentTimeMillis() - expirationMillis : 0;
        Iterator<CacheEntry<VALUE>> iterator = values.values().iterator();
        while (iterator.hasNext()) {
            CacheEntry<VALUE> cacheEntry = iterator.next();
            if (!isStrongReference && cacheEntry.reference == null) {
                countRefCleared++;
                countCleaned++;
                iterator.remove();
            } else if (cacheEntry.timeCreated < timeLimit) {
                countExpired++;
                countCleaned++;
                iterator.remove();
            }
        }
        return countCleaned;
    }
99334
private void getHeadersFromFrame() {
        byte[] hbf = null;
        if (currentFrame.getFrameType() == FrameTypes.HEADERS || currentFrame.getFrameType() == FrameTypes.PUSHPROMISEHEADERS) {
            hbf = ((FrameHeaders) currentFrame).getHeaderBlockFragment();
        } else if (currentFrame.getFrameType() == FrameTypes.CONTINUATION) {
            hbf = ((FrameContinuation) currentFrame).getHeaderBlockFragment();
        }

        if (hbf != null) {
            if (headerBlock == null) {
                headerBlock = new ArrayList<byte[]>();
            }
            headerBlock.add(hbf);
        }
    }
339768
def getouterframes(frame, context=1):
    """"""
    framelist = []
    while frame:
        framelist.append((frame,) + getframeinfo(frame, context))
        frame = frame.f_back
    return framelist
587925
function(){
    var gl = this.gl;
    gl.deleteFramebuffer( this.fbo );
    
    for (var i = 0; i < this.attachmentsList.length; i++) {
      this.attachmentsList[i].dispose();
    }
    this.attachmentsList = null;
    this.attachments     = null;

    this.valid = false;
    this.fbo   = null;
    this.gl    = null;
  }
143801
public int getMaxFrames()
	{
		int retval = -1;

		if ((maxTagSize >= 0) && (maxTagSize < MAX_TAG_FRAMES_TABLE.length))
		{
			retval = MAX_TAG_FRAMES_TABLE[maxTagSize];
		}

		return retval;
	}
1194581
public Frame process(Frame frame) {
    	count = frame.getLength() / 2;
        Frame res = Memory.allocate(count);
        
        byte[] data=frame.getData();
        byte[] resData=res.getData();
        
        for (i = 0,j = 0; i < count; i++,j++)
        	resData[i]=EncoderData.aLawCompressTable[data[j+1] & 0xff][data[j++] & 0xff];        	
        
        res.setOffset(0);
        res.setLength(count);
        res.setFormat(alaw);
        res.setTimestamp(frame.getTimestamp());
        res.setDuration(frame.getDuration());
        res.setEOM(frame.isEOM());
        res.setSequenceNumber(frame.getSequenceNumber());

        return res;
    }
1196533
def del_unused_keyframes(self):
        """"""
        skl = self.key_frame_list.sorted_key_list()
        unused_keys = [k for k in self.dct['keys']
                       if k not in skl]
        for k in unused_keys:
            del self.dct['keys'][k]
702464
E unlinkLast() {
    final E l = last;
    final E prev = l.getPrevious();
    l.setPrevious(null);
    last = prev;
    if (prev == null) {
      first = null;
    } else {
      prev.setNext(null);
    }
    return l;
  }
862387
function(packedFrames){
    var packingStructure = packedFrames[0];
    var frameData = [],
        frameDatum;

    for (var i = 1, len = packedFrames.length; i < len; i++) {
      frameDatum = packedFrames[i];
      frameData.push(
        this.unPackArray(
          packingStructure,
          frameDatum
        )
      );

    }

    return frameData;
  }
637649
public ByteBuffer markLocalToBeCleared(ByteBuffer context)
    {
        short count = context.getShort(context.position());
        if (count <= 0)
            return context; // already marked or all are remote.

        boolean hasLocalShards = false;
        for (int i = 0; i < count; i++)
        {
            if (context.getShort(context.position() + HEADER_SIZE_LENGTH + i * HEADER_ELT_LENGTH) >= 0)
            {
                hasLocalShards = true;
                break;
            }
        }

        if (!hasLocalShards)
            return context; // all shards are global or remote.

        ByteBuffer marked = ByteBuffer.allocate(context.remaining());
        marked.putShort(marked.position(), (short) (count * -1));
        ByteBufferUtil.arrayCopy(context,
                                 context.position() + HEADER_SIZE_LENGTH,
                                 marked,
                                 marked.position() + HEADER_SIZE_LENGTH,
                                 context.remaining() - HEADER_SIZE_LENGTH);
        return marked;
    }
1177785
public int getSubIfdCount() {
    int c = 0;
    if (metadata != null && metadata.contains("SubIFDs"))
      c = getMetadataList("SubIFDs").size();
    return c;
  }
675578
public byte[] resetMark() {
    mark = -1;

    if (bufferContainDataAfterMark) {
      byte[] data = Arrays.copyOfRange(buf, initialPacketPos(), pos);
      startPacket(0);
      bufferContainDataAfterMark = false;
      return data;
    }
    return null;
  }
589325
private void cascadeMarkedForDeletion()
    {
        List alreadyPrepared = new ArrayList();
        for(int i = 0; i < markedForDeletionList.size(); i++)
        {
            ObjectEnvelope mod = (ObjectEnvelope) markedForDeletionList.get(i);
            // if the object wasn't associated with another object, start cascade delete
            if(!isNewAssociatedObject(mod.getIdentity()))
            {
                cascadeDeleteFor(mod, alreadyPrepared);
                alreadyPrepared.clear();
            }
        }
        markedForDeletionList.clear();
    }
373371
public function getFrameCount()
    {
        if ($this->frameCount === null) {
            $this->frameCount = (int)($this->getDuration() * $this->getFrameRate());
        }

        return $this->frameCount;
    }
561461
public java.util.List<String> getRemoveSubnetIds() {
        if (removeSubnetIds == null) {
            removeSubnetIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return removeSubnetIds;
    }